display a user's public signing key in settings if it exists

This commit is contained in:
ansuz
2017-03-24 14:26:36 +01:00
parent ba53b50e0b
commit 3e9eb03e5a
2 changed files with 14 additions and 0 deletions

View File

@@ -52,6 +52,19 @@ define([
$div.append($label).append($name);
var publicKey = obj.edPublic;
if (publicKey) {
var $pubLabel = $('<span>', {'class': 'label'})
.text(Messages.settings_publicSigningKey + ':');
var $pubKey = $('<input>', {type: 'text', readonly: true})
.css({
width: '28em'
})
.val(publicKey);
$div.append('<br>').append($pubLabel).append($pubKey);
}
return $div;
};