mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-08-17 16:47:51 +00:00
feat: remove toast error messages for various operations and rely on axios interceptor for error handling
Signed-off-by: Noooste <83548733+Noooste@users.noreply.github.com>
This commit is contained in:
@@ -87,7 +87,7 @@ export function ObjectDetailsView() {
|
||||
document.body.removeChild(a);
|
||||
toast.success('Download started');
|
||||
} catch {
|
||||
toast.error('Download failed');
|
||||
// error toast handled by axios interceptor
|
||||
}
|
||||
};
|
||||
|
||||
@@ -99,7 +99,7 @@ export function ObjectDetailsView() {
|
||||
toast.success('Object deleted');
|
||||
navigate(backHref);
|
||||
} catch {
|
||||
toast.error('Delete failed');
|
||||
// error toast handled by axios interceptor
|
||||
} finally {
|
||||
setDeleting(false);
|
||||
setDeleteOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user