Display the public key using a href in the settings page

This commit is contained in:
yflory committed 2017-05-15 13:53:43 +02:00
1 parent 50d9f72b3a
commit 57979f6314
3 files changed
+9 -1

No files matched your search

+2 -1
View File
@@ -49,13 +49,14 @@ define([
var publicKey = obj.edPublic;
if (publicKey) {
var userHref = Cryptpad.getUserHrefFromKeys(accountName, publicKey);
var $pubLabel = $('<span>', {'class': 'label'})
.text(Messages.settings_publicSigningKey + ':');
var $pubKey = $('<input>', {type: 'text', readonly: true})
.css({
width: '28em'
})
.val(publicKey);
.val(userHref);
$div.append('<br>').append($pubLabel).append($pubKey);
}