Fix translation key

pull/1/head
yflory 6 years ago
parent f0d753e3f4
commit adef61672c

@ -126,17 +126,18 @@ define([
var link = h('a', { var link = h('a', {
href: '#' href: '#'
}, Messages.requestEdit_viewPad); }, Messages.requestEdit_viewPad);
var verified = h('p.cp-notifications-requestedit-verified'); var verified = h('p');
var $verified = $(verified); var $verified = $(verified);
if (priv.friends && priv.friends[msg.author]) { if (priv.friends && priv.friends[msg.author]) {
$verified.addClass('cp-notifications-requestedit-verified');
var f = priv.friends[msg.author]; var f = priv.friends[msg.author];
$verified.append(h('span.fa.fa-certificate')); $verified.append(h('span.fa.fa-certificate'));
var $avatar = $(h('span.cp-avatar')).appendTo($verified); var $avatar = $(h('span.cp-avatar')).appendTo($verified);
$verified.append(h('p', Messages._getKey('requestEdit_fromFriend', [f.displayName]))); $verified.append(h('p', Messages._getKey('requestEdit_fromFriend', [f.displayName])));
common.displayAvatar($avatar, f.avatar, f.displayName); common.displayAvatar($avatar, f.avatar, f.displayName);
} else { } else {
$verified.append(Messages.requestEdit_fromStranger); $verified.append(Messages._getKey('requestEdit_fromStranger', [msg.content.user.displayName]));
} }
var div = h('div', [ var div = h('div', [

Loading…
Cancel
Save