ui: loginview: fix typo in view-model variable name

s/availabel/available/g

no semantic change at all

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Oguz Bektas 2021-02-04 14:53:24 +01:00 committed by Thomas Lamprecht
parent d64c4eeab0
commit 54067d8225
1 changed files with 5 additions and 5 deletions

View File

@ -256,7 +256,7 @@ Ext.define('PBS.login.TfaWindow', {
data: { data: {
confirmText: gettext('Confirm Second Factor'), confirmText: gettext('Confirm Second Factor'),
canConfirm: false, canConfirm: false,
availabelChallenge: {}, availableChallenge: {},
}, },
}, },
@ -284,7 +284,7 @@ Ext.define('PBS.login.TfaWindow', {
let initialTab = -1, i = 0; let initialTab = -1, i = 0;
for (const k of ['webauthn', 'totp', 'recovery']) { for (const k of ['webauthn', 'totp', 'recovery']) {
const available = !!challenge[k]; const available = !!challenge[k];
vm.set(`availabelChallenge.${k}`, available); vm.set(`availableChallenge.${k}`, available);
if (available) { if (available) {
if (i === lastTabId) { if (i === lastTabId) {
@ -492,7 +492,7 @@ Ext.define('PBS.login.TfaWindow', {
confirmText: gettext('Start WebAuthn challenge'), confirmText: gettext('Start WebAuthn challenge'),
handler: 'loginWebauthn', handler: 'loginWebauthn',
bind: { bind: {
disabled: '{!availabelChallenge.webauthn}', disabled: '{!availableChallenge.webauthn}',
}, },
items: [ items: [
{ {
@ -513,7 +513,7 @@ Ext.define('PBS.login.TfaWindow', {
iconCls: 'fa fa-fw fa-clock-o', iconCls: 'fa fa-fw fa-clock-o',
handler: 'loginTotp', handler: 'loginTotp',
bind: { bind: {
disabled: '{!availabelChallenge.totp}', disabled: '{!availableChallenge.totp}',
}, },
items: [ items: [
{ {
@ -535,7 +535,7 @@ Ext.define('PBS.login.TfaWindow', {
iconCls: 'fa fa-fw fa-file-text-o', iconCls: 'fa fa-fw fa-file-text-o',
handler: 'loginRecovery', handler: 'loginRecovery',
bind: { bind: {
disabled: '{!availabelChallenge.recovery}', disabled: '{!availableChallenge.recovery}',
}, },
items: [ items: [
{ {