Implemented delete user. Removed ability to see yourself on members since you couldn't do anything anyways.
This commit is contained in:
parent
530e73fbea
commit
696f950f7a
4 changed files with 24 additions and 6 deletions
|
|
@ -12,7 +12,8 @@
|
|||
<h4>
|
||||
{{member.username | titlecase}} <span *ngIf="member.isAdmin" class="badge badge-pill badge-secondary">Admin</span>
|
||||
<div class="pull-right" *ngIf="canEditMember(member)">
|
||||
<button class="btn btn-danger mr-2"><i class="fa fa-trash" title="Delete {{member.username | titlecase}}"></i></button>
|
||||
<button class="btn btn-danger mr-2" (click)="deleteUser(member)"><i class="fa fa-trash" title="Delete {{member.username | titlecase}}"></i></button>
|
||||
<!-- <button class="btn btn-primary" (click)="openChangeRole(member)"><i class="fa fa-pencil"></i>{{member.roles.includes('Admin') ? 'Demote' : 'Promote'}}</button> -->
|
||||
<button class="btn btn-primary" (click)="openEditLibraryAccess(member)"><i class="fa fa-pencil" title="Edit {{member.username | titlecase}}"></i></button>
|
||||
</div>
|
||||
</h4>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue