From f2baaf5b5b3528692a96614f13a673fceddde65a Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 20 Jul 2018 18:27:59 +0200 Subject: [PATCH] Fix shared folders issues including disappearing folders --- customize.dist/translations/messages.fr.js | 1 + customize.dist/translations/messages.js | 3 +- www/common/common-ui-elements.js | 140 +++++++++++---------- www/common/outer/async-store.js | 9 +- www/common/outer/userObject.js | 18 +-- www/common/proxy-manager.js | 117 +++++++++++------ www/common/userObject.js | 7 +- www/drive/app-drive.less | 3 + www/drive/inner.js | 7 +- 9 files changed, 174 insertions(+), 131 deletions(-) diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 73cadd11b..0f130f985 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -446,6 +446,7 @@ define(function () { out.fm_tags_name = "Mot-clé"; out.fm_tags_used = "Nombre d'utilisations"; out.fm_restoreDrive = "Restauration de votre CryptDrive à une version antérieure. Pour de meilleurs résultats, veuillez éviter de modifier votre CryptDrive avant que cette restauration ne soit terminée."; + out.fm_moveNestedSF = "Les Drive partagés ne peuvent pas contenir d'autres Drive partagés. Le dossier {0} n'a pas été déplacé."; // File - Context menu out.fc_newfolder = "Nouveau dossier"; out.fc_newsharedfolder = "Nouveau Drive partagé"; diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index ea1c2fa24..eabf796a8 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -446,7 +446,8 @@ define(function () { out.fm_deletedPads = "These pads no longer exist on the server, they've been removed from your CryptDrive: {0}"; out.fm_tags_name = "Tag name"; out.fm_tags_used = "Number of uses"; - out.fm_restoreDrive = "Resetting your drive to an earlier state. For best results, avoid making changes to your drive until this process is complete." + out.fm_restoreDrive = "Resetting your drive to an earlier state. For best results, avoid making changes to your drive until this process is complete."; + out.fm_moveNestedSF = "Nested shared drive are not allowed. The folder {0} was not moved."; // XXX // File - Context menu out.fc_newfolder = "New folder"; out.fc_newsharedfolder = "New shared Drive"; diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 6a3e29684..3d696df93 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -125,82 +125,86 @@ define([ id: 'cp-app-prop-owners', })); - var expire = Messages.creation_expireFalse; - if (data.expire && typeof (data.expire) === "number") { - expire = new Date(data.expire).toLocaleString(); - } - $('