added feedback for delete (#2507)

* added feedback for delete

* fixed requested common.json issues
This commit is contained in:
Matthew Yung 2024-05-27 10:28:49 -07:00 committed by GitHub
parent 2321addc67
commit d64b21357b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -42,6 +42,7 @@ export const ContextMenu = ({
/> />
)); ));
} }
} catch (error) { } catch (error) {
toast.error(t('error_message', { error })); toast.error(t('error_message', { error }));
} }
@ -66,7 +67,10 @@ export const ContextMenu = ({
dialogManager.create((dp) => ( dialogManager.create((dp) => (
<DeleteDialog <DeleteDialog
{...dp} {...dp}
onSuccess={() => navigate('settings/library/locations')} onSuccess={() => {
toast.success(t('location_deleted_successfully'));
navigate('settings/library/locations');
}}
locationId={locationId} locationId={locationId}
/> />
)); ));

View file

@ -388,7 +388,9 @@
"local_locations": "Local Locations", "local_locations": "Local Locations",
"local_node": "Local Node", "local_node": "Local Node",
"location": "Location", "location": "Location",
"location_added_successfully": "Location added successfully.",
"location_connected_tooltip": "Location is being watched for changes", "location_connected_tooltip": "Location is being watched for changes",
"location_deleted_successfully": "Location deleted successfully.",
"location_disconnected_tooltip": "Location is not being watched for changes", "location_disconnected_tooltip": "Location is not being watched for changes",
"location_display_name_info": "The name of this Location, this is what will be displayed in the sidebar. Will not rename the actual folder on disk.", "location_display_name_info": "The name of this Location, this is what will be displayed in the sidebar. Will not rename the actual folder on disk.",
"location_empty_notice_message": "No files found here", "location_empty_notice_message": "No files found here",