diff --git a/www/common/outer/profile.js b/www/common/outer/profile.js index dd56db6e9..733b2b4c4 100644 --- a/www/common/outer/profile.js +++ b/www/common/outer/profile.js @@ -54,6 +54,9 @@ define([ if (!lm.proxy.notifications) { lm.proxy.notifications = Util.find(ctx.store.proxy, ['mailboxes', 'notifications', 'channel']); } + if (!lm.proxy.edPublic) { + lm.proxy.edPublic = ctx.store.proxy.edPublic; + } if (ctx.onReadyHandlers.length) { ctx.onReadyHandlers.forEach(function (f) { try { diff --git a/www/profile/inner.js b/www/profile/inner.js index 9626c7734..5dfbaf491 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -457,6 +457,34 @@ define([ APP.editor.save(); }; + Messages.profile_copyKey = "Copy edPublic key"; // XXX + var addPublicKey = function ($container) { + if (!APP.readOnly) { return; } + + var $div = $(h('div.cp-sidebarlayout-element')).appendTo($container); + APP.$edPublic = $('