Show help text for unknown contact identity

Adds a new message string "theirIdentityUnknown".

Fixes #576

// FREEBIE
This commit is contained in:
jakob 2016-01-18 01:18:55 +01:00 committed by lilia
parent b2948e541e
commit 6c7f2cf0fc
5 changed files with 21 additions and 2 deletions

View file

@ -25,13 +25,18 @@
return octets;
},
render_attributes: function() {
return {
var attributes = {
verifyIdentity: i18n('verifyIdentity'),
yourIdentity: i18n('yourIdentity'),
theirIdentity: i18n('theirIdentity'),
your_key: this.splitKey(this.model.your_key),
their_key: this.splitKey(this.model.their_key)
};
if(this.model.their_key) {
attributes.their_key = this.splitKey(this.model.their_key);
} else {
attributes.their_key_unknown = i18n('theirIdentityUnknown');
}
return attributes;
}
});
})();