|
|
|
@ -127,7 +127,9 @@ export const DeleteMediaButton = props => {
|
|
|
|
|
handleDialogClose();
|
|
|
|
|
},
|
|
|
|
|
onFailure: () =>
|
|
|
|
|
notify("resources.delete_media.action.send_failure", "error"),
|
|
|
|
|
notify("resources.delete_media.action.send_failure", {
|
|
|
|
|
type: "error",
|
|
|
|
|
}),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
@ -170,7 +172,9 @@ export const ProtectMediaButton = props => {
|
|
|
|
|
refresh();
|
|
|
|
|
},
|
|
|
|
|
onFailure: () =>
|
|
|
|
|
notify("resources.protect_media.action.send_failure", "error"),
|
|
|
|
|
notify("resources.protect_media.action.send_failure", {
|
|
|
|
|
type: "error",
|
|
|
|
|
}),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
@ -184,7 +188,9 @@ export const ProtectMediaButton = props => {
|
|
|
|
|
refresh();
|
|
|
|
|
},
|
|
|
|
|
onFailure: () =>
|
|
|
|
|
notify("resources.protect_media.action.send_failure", "error"),
|
|
|
|
|
notify("resources.protect_media.action.send_failure", {
|
|
|
|
|
type: "error",
|
|
|
|
|
}),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
@ -262,7 +268,9 @@ export const QuarantineMediaButton = props => {
|
|
|
|
|
refresh();
|
|
|
|
|
},
|
|
|
|
|
onFailure: () =>
|
|
|
|
|
notify("resources.quarantine_media.action.send_failure", "error"),
|
|
|
|
|
notify("resources.quarantine_media.action.send_failure", {
|
|
|
|
|
type: "error",
|
|
|
|
|
}),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
@ -276,7 +284,9 @@ export const QuarantineMediaButton = props => {
|
|
|
|
|
refresh();
|
|
|
|
|
},
|
|
|
|
|
onFailure: () =>
|
|
|
|
|
notify("resources.quarantine_media.action.send_failure", "error"),
|
|
|
|
|
notify("resources.quarantine_media.action.send_failure", {
|
|
|
|
|
type: "error",
|
|
|
|
|
}),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|