mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-21 01:46:32 +02:00
remove success toasts on save / rescan
This commit is contained in:
@@ -611,8 +611,6 @@
|
||||
"copyPath": "Copy path to clipboard",
|
||||
"copiedPath": "Path copied successfully",
|
||||
"openFile": "Show track in file manager",
|
||||
"tagsSaved": "Tags saved successfully",
|
||||
"rescanStarted": "Library rescan started",
|
||||
"fileNotWritable": "File is not accessible or not writable",
|
||||
"triggerRescan": "Trigger library rescan after saving",
|
||||
"addField": "Add field…",
|
||||
|
||||
@@ -233,7 +233,11 @@ export const SongEditModal = ({ songs }: { songs: Song[] }) => {
|
||||
/>
|
||||
|
||||
<Group justify="flex-end">
|
||||
<Button onClick={() => closeAllModals()} variant="subtle">
|
||||
<Button
|
||||
disabled={editor.isSaving}
|
||||
onClick={() => closeAllModals()}
|
||||
variant="subtle"
|
||||
>
|
||||
{t('common.cancel', 'Cancel')}
|
||||
</Button>
|
||||
<Button loading={editor.isSaving} onClick={editor.handleSave} variant="filled">
|
||||
|
||||
@@ -327,8 +327,6 @@ export const useMetadataEditor = ({ browser, songs: songsProp, utils }: UseMetad
|
||||
return;
|
||||
}
|
||||
|
||||
toast.success({ message: t('page.itemDetail.tagsSaved') });
|
||||
|
||||
if (artworkOp) {
|
||||
await browser?.clearCache();
|
||||
}
|
||||
@@ -339,7 +337,6 @@ export const useMetadataEditor = ({ browser, songs: songsProp, utils }: UseMetad
|
||||
apiClientProps: { serverId: server.id },
|
||||
query: { ids: resolvedSongs.map((s) => s.id) },
|
||||
});
|
||||
toast.success({ message: t('page.itemDetail.rescanStarted') });
|
||||
} catch {
|
||||
// non-fatal
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user