From facc6d877acbd87ee620ba62f679b93c7de3833f Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 24 Mar 2020 18:36:55 +0100 Subject: [PATCH 1/2] Remove hardcoded translation key --- www/profile/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/profile/inner.js b/www/profile/inner.js index 5dfbaf491..ba348d829 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -457,9 +457,9 @@ define([ APP.editor.save(); }; - Messages.profile_copyKey = "Copy edPublic key"; // XXX var addPublicKey = function ($container) { if (!APP.readOnly) { return; } + if (!Messages.profile_copyKey) { return; } // XXX var $div = $(h('div.cp-sidebarlayout-element')).appendTo($container); APP.$edPublic = $('