diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 6216b2704..73019d6c4 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2884,7 +2884,13 @@ define([ UIElements.displayStorePadPopup = function (common, data) { if (storePopupState) { return; } storePopupState = true; - if (data && data.stored) { return; } // We won't display the popup for dropped files + // We won't display the popup for dropped files or already stored pads + if (data && data.stored) { + if (!data.inMyDrive) { + $('.cp-toolbar-storeindrive').show(); + } + return; + } var priv = common.getMetadataMgr().getPrivateData(); // This pad will be deleted automatically, it shouldn't be stored diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index d13cb09fb..66e1967cd 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1228,7 +1228,7 @@ define([ }); // Add the pad if it does not exist in our drive - if (!contains) { // || (ownedByMe && !inMyDrive)) { + if (!contains || (data.forceSave && !inMyDrive)) { var autoStore = Util.find(store.proxy, ['settings', 'general', 'autostore']); if (autoStore !== 1 && !data.forceSave && !data.path) { // send event to inner to display the corner popup @@ -1269,7 +1269,8 @@ define([ }); // Let inner know that dropped files shouldn't trigger the popup postMessage(clientId, "AUTOSTORE_DISPLAY_POPUP", { - stored: true + stored: true, + inMyDrive: inMyDrive }); nThen(function (waitFor) { sendTo.forEach(function (teamId) {