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 class="dropdown-divider"></li>
|
||||||
<li role="menuitem">
|
<li role="menuitem">
|
||||||
<button class="dropdown-item" (click)="deletePolicy(policy)">
|
<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 }}
|
{{ 'security.deletePolicy' | translate }}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<li class="dropdown-divider"></li>
|
<li class="dropdown-divider"></li>
|
||||||
<li role="menuitem">
|
<li role="menuitem">
|
||||||
<button class="dropdown-item" (click)="deleteRole(role)">
|
<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 }}
|
{{ 'security.deleteRole' | translate }}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
@ -208,7 +208,7 @@
|
|||||||
<li class="dropdown-divider"></li>
|
<li class="dropdown-divider"></li>
|
||||||
<li role="menuitem">
|
<li role="menuitem">
|
||||||
<button class="dropdown-item" (click)="deleteUser(user)">
|
<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 }}
|
{{ 'security.deleteUser' | translate }}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -157,12 +157,13 @@ export class SecurityComponent implements OnInit, OnDestroy
|
|||||||
this.toastr.info(`The details have been updated for user "${user.login}"`);
|
this.toastr.info(`The details have been updated for user "${user.login}"`);
|
||||||
|
|
||||||
user = Object.assign(user, x);
|
user = Object.assign(user, x);
|
||||||
|
|
||||||
|
user.working = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
x.roles = [];
|
||||||
this.users.push(x);
|
this.users.push(x);
|
||||||
|
|
||||||
user.working = false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user