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>
|
<span>{{name()}}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { NzModalModule } from 'ng-zorro-antd/modal';
|
|||||||
styleUrls: ['./modal.css'],
|
styleUrls: ['./modal.css'],
|
||||||
})
|
})
|
||||||
export class Modal {
|
export class Modal {
|
||||||
|
type = input<"primary" | "default" | "dashed" | "link" | "text">()
|
||||||
name = input.required<string>();
|
name = input.required<string>();
|
||||||
isVisible = false;
|
isVisible = false;
|
||||||
isOkLoading = false;
|
isOkLoading = false;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<td>{{ data.email }}</td>
|
<td>{{ data.email }}</td>
|
||||||
<td>{{ data.birthDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ data.birthDate | date: 'dd/MM/yyyy'}}</td>
|
||||||
<td>
|
<td>
|
||||||
<app-modal [name]="'Afficher'">
|
<app-modal type="link" [name]="'Voir les emprunts'">
|
||||||
<nz-table #basicTable [nzData]="listOfData">
|
<nz-table #basicTable [nzData]="listOfData">
|
||||||
<thead>
|
<thead>
|
||||||
<tr style="text-align: center">
|
<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-create-author></app-create-author>
|
||||||
</app-modal>
|
</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-create-book></app-create-book>
|
||||||
</app-modal>
|
</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-create-loan></app-create-loan>
|
||||||
</app-modal>
|
</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-create-user></app-create-user>
|
||||||
</app-modal>
|
</app-modal>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user