Pad creation screen translations and link to settings

This commit is contained in:
yflory
2018-01-29 10:38:00 +01:00
parent 74deb60f0f
commit 5089f1206d
7 changed files with 48 additions and 4 deletions

View File

@@ -176,7 +176,7 @@ Version 1
secret.keys = Crypto.createEditCryptor();
secret.key = Crypto.createEditCryptor().editKeyStr;
};
if (!secretHash && !/#/.test(window.location.href)) {
if (!secretHash && !window.location.hash) { //!/#/.test(window.location.href)) {
generate();
return secret;
} else {

View File

@@ -1816,6 +1816,13 @@ define([
$button.click(function () {
create();
});
// Settings button
var origin = common.getMetadataMgr().getPrivateData().origin;
$(h('div.cp-creation-settings', h('a', {
href: origin + '/settings/#creation',
target: '_blank'
}, Messages.creation_settings))).appendTo($creation);
};
return UIElements;