mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 11:03:27 +00:00
added feedback for delete (#2507)
* added feedback for delete * fixed requested common.json issues
This commit is contained in:
parent
2321addc67
commit
d64b21357b
|
@ -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}
|
||||||
/>
|
/>
|
||||||
));
|
));
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue