Merge pull request #1279 from nextcloud/2fa-backup-codes-typo

fix 2fa backup codes typo
This commit is contained in:
Roeland Jago Douma 2016-09-06 14:03:43 +02:00 committed by GitHub
commit 8c974589bd
1 changed files with 3 additions and 3 deletions

View File

@ -103,13 +103,13 @@
this._codes = data.codes;
this.render();
}.bind(this)).fail(function () {
OC.Notification.showTemporary('An error occurred while generating your backup codes');
OC.Notification.showTemporary(t('twofactor_backupcodes', 'An error occurred while generating your backup codes'));
$('#generate-backup-codes').removeClass('icon-loading-small');
});
},
_onPrintBackupCodes: function () {
var url = this._getDownloadDataHref();
window.open(url, 'Nextcloud backpu codes');
window.open(url, t('twofactor_backupcodes', 'Nextcloud backup codes'));
window.print();
window.close();
}
@ -117,4 +117,4 @@
OC.Settings.TwoFactorBackupCodes.View = View;
})(OC, Handlebars, $, _);
})(OC, Handlebars, $, _);