Move base64 migration prompt to corner and only when the pad is stored

This commit is contained in:
yflory
2018-08-30 11:21:33 +02:00
parent 7b06626581
commit 264f7dc6a1
5 changed files with 46 additions and 27 deletions

View File

@@ -2335,13 +2335,10 @@ define([
var hide = h('button.cp-corner-cancel', Messages.autostore_hide);
var store = h('button.cp-corner-primary', Messages.autostore_store);
var actions = h('div', [
store,
hide,
]);
var actions = h('div', [store, hide]);
var initialHide = data && data.autoStore && data.autoStore === -1;
var modal = UI.cornerPopup(text, actions, footer, initialHide);
var modal = UI.cornerPopup(text, actions, footer, {hidden: initialHide});
$(modal.popup).find('.cp-corner-footer a').click(function (e) {
e.preventDefault();