From 1a6bf9f3b2359487f8c800ebdb460ba4149ed00b Mon Sep 17 00:00:00 2001 From: GJS Date: Sat, 28 Dec 2024 15:46:32 +0100 Subject: [PATCH] Added: Delete functionality for selected monitor(s) in `MonitorList.vue` - Added a delete button to the selection controls for deleting selected monitor(s). - Integrated a confirmation dialog (`confirmDeleteSelected`) with the message `deleteSelectedMonitorMsg`. - Implemented `deleteSelectedDialog` to trigger the confirmation dialog. - Created `deleteSelected` method to handle monitor deletion and update the selection state. - Implemented toast notifications for feedback on the deletion status. - Added page reload mechanism to reflect the deletion of monitors after all selected monitors are removed. - Ensured consistent functionality with existing selection and action methods. modified: src/components/MonitorList.vue --- src/components/MonitorList.vue | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/components/MonitorList.vue b/src/components/MonitorList.vue index a579316b3..55da9518a 100644 --- a/src/components/MonitorList.vue +++ b/src/components/MonitorList.vue @@ -39,6 +39,7 @@ + {{ $t("selectedMonitorCount", [ selectedMonitorCount ]) }} @@ -64,9 +65,13 @@ + {{ $t("pauseMonitorMsg") }} + + {{ $t("deleteSelectedMonitorMsg") }} +