open archive improved

This commit is contained in:
Jan Prochazka
2021-11-14 09:54:10 +01:00
parent 029e451918
commit 63bebc67a2
3 changed files with 12 additions and 5 deletions

View File

@@ -21,7 +21,9 @@
const handleDelete = () => {
showModal(ConfirmModal, {
message: `Really delete folder ${data.name}?`,
message: data.name.endsWith('.link')
? `Really delete link to folder ${data.name}? Folder content remains untouched.`
: `Really delete folder ${data.name}?`,
onConfirm: () => {
axiosInstance.post('archive/delete-folder', { folder: data.name });
},