fix(notifications): a notice keeps what to say and says it in the reader's language when shown
This commit is contained in:
@@ -28,6 +28,7 @@ import { jobTitle } from "../../features/downloads/downloadTitle";
|
||||
import { folderLabel } from "../../features/folders/fileFolders";
|
||||
import { type ActionMenuItem } from "../../components/ui/ActionMenu";
|
||||
import { menuGroups } from "../../components/ui/menuGroups";
|
||||
import { msg } from "../../lib/notifications";
|
||||
|
||||
// The Files rows' ONE menu, and the actions the rows show as icons (the same ones, so a row's every
|
||||
// action is reachable by right click — DESIGN.md "Library list columns"). My own files and the ones
|
||||
@@ -79,7 +80,7 @@ export function useFileActions({
|
||||
const update = useMutation({
|
||||
mutationFn: ({ id, patch }: { id: number; patch: Patch }) => api.updateFile(id, patch),
|
||||
onSuccess: () => invalidateDownloads(qc),
|
||||
onError: (e, v) => notifyActionError(e, t(patchFail(v.patch))),
|
||||
onError: (e, v) => notifyActionError(e, msg(patchFail(v.patch))),
|
||||
});
|
||||
const remove = useMutation({
|
||||
mutationFn: (id: number) => api.deleteFile(id),
|
||||
|
||||
Reference in New Issue
Block a user