TRIX-23 created user does not show up in Security screen without refresh

This commit is contained in:
Dragos 2021-05-31 11:53:59 +03:00
parent 9ea39a64f7
commit d48da7d0cb
2 changed files with 6 additions and 5 deletions

View File

@ -48,7 +48,7 @@
<li class="dropdown-divider"></li>
<li role="menuitem">
<button class="dropdown-item" (click)="deletePolicy(policy)">
<fa-icon [fixedWidth]="true" icon="trash"></fa-icon>
<fa-icon [fixedWidth]="true" icon="trash" size="sm"></fa-icon>
{{ 'security.deletePolicy' | translate }}
</button>
</li>
@ -121,7 +121,7 @@
<li class="dropdown-divider"></li>
<li role="menuitem">
<button class="dropdown-item" (click)="deleteRole(role)">
<fa-icon [fixedWidth]="true" icon="trash"></fa-icon>
<fa-icon [fixedWidth]="true" icon="trash" size="sm"></fa-icon>
{{ 'security.deleteRole' | translate }}
</button>
</li>
@ -208,7 +208,7 @@
<li class="dropdown-divider"></li>
<li role="menuitem">
<button class="dropdown-item" (click)="deleteUser(user)">
<fa-icon [fixedWidth]="true" icon="trash"></fa-icon>
<fa-icon [fixedWidth]="true" icon="trash" size="sm"></fa-icon>
{{ 'security.deleteUser' | translate }}
</button>
</li>

View File

@ -157,12 +157,13 @@ export class SecurityComponent implements OnInit, OnDestroy
this.toastr.info(`The details have been updated for user "${user.login}"`);
user = Object.assign(user, x);
user.working = false;
}
else
{
x.roles = [];
this.users.push(x);
user.working = false;
}
});
}