Add archived alert message

pull/1/head
David Benqué 4 years ago
parent 9fe36d5c93
commit 2f062de290

@ -120,7 +120,8 @@ define([
Messages.admin_archiveInput = "Document URL"; Messages.admin_archiveInput = "Document URL";
Messages.admin_archiveInput2 = "Document password"; Messages.admin_archiveInput2 = "Document password";
Messages.admin_archiveInval = "Invalid document"; Messages.admin_archiveInval = "Invalid document";
Messages.restoredFromServer = "Pad restored"; Messages.restoredFromServer = "Document restored";
Messages.archivedFromServer = "Document archived";
var archiveForm = function (archive, $div, $button) { var archiveForm = function (archive, $div, $button) {
var label = h('label', { for: 'cp-admin-archive' }, Messages.admin_archiveInput); var label = h('label', { for: 'cp-admin-archive' }, Messages.admin_archiveInput);
@ -221,7 +222,7 @@ define([
console.error(e); console.error(e);
return; return;
} }
UI.log(archive ? Messages.deletedFromServer : Messages.restoredFromServer); UI.log(archive ? Messages.archivedFromServer : Messages.restoredFromServer);
$input.val(''); $input.val('');
$pwInput.val(''); $pwInput.val('');
}); });

Loading…
Cancel
Save