From 0008cff503c8e5f4422825c7f70d78b068d10c6b Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 8 Sep 2020 11:34:06 +0200 Subject: [PATCH] Use the correct inactive time in anonymous drive --- www/common/drive-ui.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 3447f5056..c9456ccdd 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1,5 +1,6 @@ define([ 'jquery', + '/api/config/', '/common/toolbar.js', 'json.sortify', '/common/common-util.js', @@ -19,6 +20,7 @@ define([ '/customize/messages.js', ], function ( $, + ApiConfig, Toolbar, JSONSortify, Util, @@ -2339,8 +2341,10 @@ define([ msg = Messages._getKey('fm_info_sharedFolderHistory', [sfName]); return $(common.fixLinks($box.html(msg))); } + Messages.fm_info_anonymous = "You are not logged in so your pads will expire after {0} days (find out more). They are stored in your browser so clearing history may make them disappear.
Sign up or Log in to keep them alive.
"; // XXX XXX + // XXX update this key to use "{0} days" instead of "3 months" if (!APP.loggedIn) { - msg = APP.newSharedFolder ? Messages.fm_info_sharedFolder : Messages.fm_info_anonymous; + msg = APP.newSharedFolder ? Messages.fm_info_sharedFolder : Messages._getKey('fm_info_anonymous', [ApiConfig.inactiveTime || 90]); return $(common.fixLinks($box.html(msg))); } if (!msg || APP.store['hide-info-' + path[0]] === '1') {