- Added user update modal
- Refactored modal logic
This commit is contained in:
@ -46,7 +46,7 @@
|
||||
|
||||
<!-- Buttons Section -->
|
||||
<div class="flex justify-center mt-10 space-x-4">
|
||||
<button class="btn btn-primary">
|
||||
<button class="btn btn-primary" (click)="openEditUserModal()">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person" viewBox="0 0 16 16">
|
||||
<path d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"/>
|
||||
</svg>
|
||||
@ -144,3 +144,11 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
<dialog #edit_user_modal class="modal">
|
||||
<div class="modal-box">
|
||||
<app-edituser
|
||||
[username]="username"
|
||||
></app-edituser>
|
||||
</div>
|
||||
</dialog>
|
||||
|
Reference in New Issue
Block a user