From 3911d74cf4e4e136d6b53fa1f90af0ad0aa3c399 Mon Sep 17 00:00:00 2001 From: Danny Brown Date: Wed, 16 Sep 2020 22:45:13 -0400 Subject: [PATCH] fix: update reject/delete dialog title, body copy, and button text (#2043) --- .../PanelStudyBrowserTracking.jsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/extensions/measurement-tracking/src/panels/PanelStudyBrowserTracking/PanelStudyBrowserTracking.jsx b/extensions/measurement-tracking/src/panels/PanelStudyBrowserTracking/PanelStudyBrowserTracking.jsx index 6c14c6c16..dac70ce37 100644 --- a/extensions/measurement-tracking/src/panels/PanelStudyBrowserTracking/PanelStudyBrowserTracking.jsx +++ b/extensions/measurement-tracking/src/panels/PanelStudyBrowserTracking/PanelStudyBrowserTracking.jsx @@ -434,21 +434,21 @@ function _mapDisplaySets( showOverlay: true, content: Dialog, contentProps: { - title: 'Reject Report', + title: 'Delete Report', body: () => (
-

This is a destructive action.

-

Are you sure you want to continue?

+

Are you sure you want to delete this report?

+

This action cannot be undone.

), actions: [ { id: 'cancel', text: 'Cancel', type: 'secondary' }, - { id: 'save', text: 'Save', type: 'primary' }, + { id: 'yes', text: 'Yes', type: 'primary' }, ], onClose: () => UIDialogService.dismiss({ id: 'ds-reject-sr' }), onSubmit: async ({ action }) => { switch (action.id) { - case 'save': + case 'yes': try { await dataSource.reject.series( ds.StudyInstanceUID, @@ -457,15 +457,15 @@ function _mapDisplaySets( DisplaySetService.deleteDisplaySet(displaySetInstanceUID); UIDialogService.dismiss({ id: 'ds-reject-sr' }); UINotificationService.show({ - title: 'Reject Report', - message: 'Report rejected successfully', + title: 'Delete Report', + message: 'Report deleted successfully', type: 'success', }); } catch (error) { UIDialogService.dismiss({ id: 'ds-reject-sr' }); UINotificationService.show({ - title: 'Reject Report', - message: 'Failed to reject report', + title: 'Delete Report', + message: 'Failed to delete report', type: 'error', }); }