Differentiate between local and remote trust decisions
FREEBIE
This commit is contained in:
parent
20f4d48991
commit
1e8ae774a2
3 changed files with 44 additions and 7 deletions
|
@ -113,16 +113,29 @@
|
|||
'click .content': 'showIdentity'
|
||||
},
|
||||
render_attributes: function() {
|
||||
var key;
|
||||
|
||||
if (this.model.get('verified')) {
|
||||
if (this.model.get('local')) {
|
||||
key = 'youMarkedAsVerified';
|
||||
} else {
|
||||
key = 'youMarkedAsVerifiedOtherDevice';
|
||||
}
|
||||
return {
|
||||
icon: 'verified',
|
||||
content: i18n('youMarkedAsVerified', this.conversation.getTitle())
|
||||
content: i18n(key, this.conversation.getTitle())
|
||||
};
|
||||
}
|
||||
|
||||
if (this.model.get('local')) {
|
||||
key = 'youMarkedAsNotVerified';
|
||||
} else {
|
||||
key = 'youMarkedAsNotVerifiedOtherDevice';
|
||||
}
|
||||
|
||||
return {
|
||||
icon: 'shield',
|
||||
content: i18n('youMarkedAsNotVerified', this.conversation.getTitle())
|
||||
content: i18n(key, this.conversation.getTitle())
|
||||
};
|
||||
},
|
||||
showIdentity: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue