Display the public key using a href in the settings page

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

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);
}