From 54067d82252013190df7904527db7ba9d5c61b92 Mon Sep 17 00:00:00 2001 From: Oguz Bektas Date: Thu, 4 Feb 2021 14:53:24 +0100 Subject: [PATCH] ui: loginview: fix typo in view-model variable name s/availabel/available/g no semantic change at all Signed-off-by: Oguz Bektas Signed-off-by: Thomas Lamprecht --- www/LoginView.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/LoginView.js b/www/LoginView.js index 4b101425..1c7a977c 100644 --- a/www/LoginView.js +++ b/www/LoginView.js @@ -256,7 +256,7 @@ Ext.define('PBS.login.TfaWindow', { data: { confirmText: gettext('Confirm Second Factor'), canConfirm: false, - availabelChallenge: {}, + availableChallenge: {}, }, }, @@ -284,7 +284,7 @@ Ext.define('PBS.login.TfaWindow', { let initialTab = -1, i = 0; for (const k of ['webauthn', 'totp', 'recovery']) { const available = !!challenge[k]; - vm.set(`availabelChallenge.${k}`, available); + vm.set(`availableChallenge.${k}`, available); if (available) { if (i === lastTabId) { @@ -492,7 +492,7 @@ Ext.define('PBS.login.TfaWindow', { confirmText: gettext('Start WebAuthn challenge'), handler: 'loginWebauthn', bind: { - disabled: '{!availabelChallenge.webauthn}', + disabled: '{!availableChallenge.webauthn}', }, items: [ { @@ -513,7 +513,7 @@ Ext.define('PBS.login.TfaWindow', { iconCls: 'fa fa-fw fa-clock-o', handler: 'loginTotp', bind: { - disabled: '{!availabelChallenge.totp}', + disabled: '{!availableChallenge.totp}', }, items: [ { @@ -535,7 +535,7 @@ Ext.define('PBS.login.TfaWindow', { iconCls: 'fa fa-fw fa-file-text-o', handler: 'loginRecovery', bind: { - disabled: '{!availabelChallenge.recovery}', + disabled: '{!availableChallenge.recovery}', }, items: [ {