RED-5386: Added marker for users without roles.

This commit is contained in:
Nicoleta Panaghiu 2022-10-25 16:54:20 +03:00
parent e303e6b949
commit 82faae04f5
4 changed files with 32 additions and 2 deletions

View File

@ -59,8 +59,9 @@
></mat-slide-toggle>
</div>
<div class="cell">
<span class="small-label">{{ getDisplayRoles(user) }}</span>
<div class="cell" [ngClass]="!user.hasAnyRole && 'no-role-alignment'">
<mat-icon *ngIf="!user.hasAnyRole" [svgIcon]="'red:alert-circle'" class="icon"></mat-icon>
<span class="small-label opacity-1">{{ getDisplayRoles(user) }}</span>
</div>
<div class="cell">

View File

@ -1,3 +1,5 @@
@use 'variables';
.right-container {
display: flex;
width: 353px;
@ -20,3 +22,23 @@
.action-buttons > div {
display: flex;
}
.cell {
&.no-role-alignment {
flex-direction: row;
justify-content: start;
align-items: center;
color: variables.$primary;
}
}
.opacity-1 {
opacity: 1;
}
.icon {
font-size: 12px;
height: 12px;
width: 12px;
margin-right: 4px;
}

View File

@ -12,6 +12,7 @@ export class IconsModule {
constructor(private readonly _iconRegistry: MatIconRegistry, private readonly _sanitizer: DomSanitizer) {
const icons = [
'ai',
'alert-circle',
'approved',
'archive',
'arrow-up',

View File

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-alert-circle" width="14px" height="14px" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<circle cx="12" cy="12" r="9"></circle>
<line x1="12" y1="8" x2="12" y2="11"></line>
<line x1="12" y1="16" x2="12.01" y2="16"></line>
</svg>

After

Width:  |  Height:  |  Size: 453 B