From d68b6ec5c994c3c205598c481bbad745fb94e2d5 Mon Sep 17 00:00:00 2001 From: Lucas Li Date: Thu, 30 Jan 2025 16:53:14 -0800 Subject: [PATCH] add delete fiscal --- .../confirmation-dialog.component.html | 8 +- .../project-fiscals.component.html | 2 +- .../project-fiscals.component.spec.ts | 86 ++++++++++++++++++- .../project-fiscals.component.ts | 49 ++++++++++- .../src/app/services/project-services.spec.ts | 31 +++++++ .../src/app/services/project-services.ts | 17 ++++ .../main/angular/src/app/utils/messages.ts | 2 + 7 files changed, 190 insertions(+), 5 deletions(-) diff --git a/client/wfprev-war/src/main/angular/src/app/components/confirmation-dialog/confirmation-dialog.component.html b/client/wfprev-war/src/main/angular/src/app/components/confirmation-dialog/confirmation-dialog.component.html index 5fccf83d0..441ec696b 100644 --- a/client/wfprev-war/src/main/angular/src/app/components/confirmation-dialog/confirmation-dialog.component.html +++ b/client/wfprev-war/src/main/angular/src/app/components/confirmation-dialog/confirmation-dialog.component.html @@ -1,6 +1,8 @@
- {{ dialogUsage === 'confirm-cancel' ? 'Confirm Cancel' : 'Duplicate Found' }} + {{ dialogUsage === 'confirm-cancel' ? 'Confirm Cancel' : + dialogUsage === 'confirm-delete' ? 'Confirm Delete' : + 'Duplicate Found' }}
@@ -12,6 +14,10 @@

This Project already exists:

+

+ Are you sure you want to delete this fiscal year?
+ This action cannot be undone. +

-