TRIX-23 created user does not show up in Security screen without refresh
This commit is contained in:
parent
9ea39a64f7
commit
d48da7d0cb
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user