fix buttons in all modals
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<button nz-button nzType="primary" (click)="showModal()">
|
||||
<button nz-button [nzType]="type()" (click)="showModal()">
|
||||
<span>{{name()}}</span>
|
||||
</button>
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import { NzModalModule } from 'ng-zorro-antd/modal';
|
||||
styleUrls: ['./modal.css'],
|
||||
})
|
||||
export class Modal {
|
||||
type = input<"primary" | "default" | "dashed" | "link" | "text">()
|
||||
name = input.required<string>();
|
||||
isVisible = false;
|
||||
isOkLoading = false;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<td>{{ data.email }}</td>
|
||||
<td>{{ data.birthDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>
|
||||
<app-modal [name]="'Afficher'">
|
||||
<app-modal type="link" [name]="'Voir les emprunts'">
|
||||
<nz-table #basicTable [nzData]="listOfData">
|
||||
<thead>
|
||||
<tr style="text-align: center">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<app-modal [name]="'Ajouter un auteur'">
|
||||
<app-modal type="primary" [name]="'Ajouter un auteur'">
|
||||
<app-create-author></app-create-author>
|
||||
</app-modal>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<app-modal [name]="'Ajouter un livre'">
|
||||
<app-modal type="primary" [name]="'Ajouter un livre'">
|
||||
<app-create-book></app-create-book>
|
||||
</app-modal>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<app-modal [name]="'Ajouter un emprunt'">
|
||||
<app-modal type="primary" [name]="'Ajouter un emprunt'">
|
||||
<app-create-loan></app-create-loan>
|
||||
</app-modal>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<app-modal [name]="'Ajouter un utilisateur'">
|
||||
<app-modal type="primary" [name]="'Ajouter un utilisateur'">
|
||||
<app-create-user></app-create-user>
|
||||
</app-modal>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user