fix buttons in all modals

This commit is contained in:
2025-11-17 10:42:44 +01:00
parent bab2bc8975
commit fb7f060a88
7 changed files with 7 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<button nz-button nzType="primary" (click)="showModal()">
<button nz-button [nzType]="type()" (click)="showModal()">
<span>{{name()}}</span>
</button>

View File

@@ -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;

View File

@@ -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">

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>