Ese the correct document type in the text for the store corner popup

This commit is contained in:
yflory
2018-10-01 17:35:19 +02:00
parent 930677750c
commit d78a00b5e1
4 changed files with 14 additions and 4 deletions

View File

@@ -2382,8 +2382,12 @@ define([
if (storePopupState) { return; }
storePopupState = true;
if (data && data.stored) { return; } // We won't display the popup for dropped files
var priv = common.getMetadataMgr().getPrivateData();
var text = Messages.autostore_notstored;
var typeMsg = priv.pathname.indexOf('/file/') !== -1 ? Messages.autostore_file :
priv.pathname.indexOf('/drive/') !== -1 ? Messages.autostore_sf :
Messages.autostore_pad;
var text = Messages._getKey('autostore_notstored', [typeMsg]);
var footer = Messages.autostore_settings;
var hide = h('button.cp-corner-cancel', Messages.autostore_hide);