Fixes password set remotely text.

This commit is contained in:
damencho 2016-10-31 14:40:46 -05:00
parent 96479e0474
commit 2edb279d22
1 changed files with 5 additions and 2 deletions

View File

@ -323,10 +323,13 @@ export default class InviteDialogView {
updateView() {
let pass = this.model.getPassword();
let { isModerator } = this.model;
if (this.model.getRoomLocker().lockedElsewhere || !pass)
if (this.model.getRoomLocker().lockedElsewhere || !pass) {
$('#inviteDialogPassword').attr("data-i18n", "passwordSetRemotely");
else
APP.translation.translateElement($('#inviteDialogPassword'));
} else {
$('#inviteDialogPassword').removeAttr("data-i18n");
$('#inviteDialogPassword').text(pass);
}
// if we are not moderator we cannot remove password
if (isModerator)