From ea38b9f78e1026786758e5de2886443293394c30 Mon Sep 17 00:00:00 2001 From: Wilfred Asomani Date: Wed, 16 Aug 2023 08:32:11 +0000 Subject: [PATCH] web/satellite/vuetify-poc: fix vuetify form reloads This change fixes an issue where the vuetify app will reload when "enter" is pressed in a form. It also adds a success notification on successfully enabling 2FA. Change-Id: I23a66122dce4f1bd2ff21a5cd6ae0f1b22be9395 --- .../vuetify-poc/src/components/dialogs/ChangeNameDialog.vue | 2 +- .../src/components/dialogs/ChangePasswordDialog.vue | 2 +- .../src/components/dialogs/CreateBucketDialog.vue | 2 +- .../vuetify-poc/src/components/dialogs/DisableMFADialog.vue | 2 +- .../vuetify-poc/src/components/dialogs/EnableMFADialog.vue | 6 +++++- .../dialogs/createAccessSteps/CreateNewAccessStep.vue | 2 +- .../dialogs/createAccessSteps/EnterPassphraseStep.vue | 2 +- web/satellite/vuetify-poc/src/views/Team.vue | 5 +++-- 8 files changed, 14 insertions(+), 9 deletions(-) diff --git a/web/satellite/vuetify-poc/src/components/dialogs/ChangeNameDialog.vue b/web/satellite/vuetify-poc/src/components/dialogs/ChangeNameDialog.vue index 46affd849..7b088172f 100644 --- a/web/satellite/vuetify-poc/src/components/dialogs/ChangeNameDialog.vue +++ b/web/satellite/vuetify-poc/src/components/dialogs/ChangeNameDialog.vue @@ -29,7 +29,7 @@ - + - + - +

Buckets are used to store and organize your files.

diff --git a/web/satellite/vuetify-poc/src/components/dialogs/DisableMFADialog.vue b/web/satellite/vuetify-poc/src/components/dialogs/DisableMFADialog.vue index 21691f741..233fc13ef 100644 --- a/web/satellite/vuetify-poc/src/components/dialogs/DisableMFADialog.vue +++ b/web/satellite/vuetify-poc/src/components/dialogs/DisableMFADialog.vue @@ -32,7 +32,7 @@
- + - + { watch(innerContent, newContent => { if (newContent) return; // dialog has been closed + if (step.value === 2) { + // recovery codes/success step + notify.success('2FA successfully enabled'); + } step.value = 0; confirmPasscode.value = ''; isError.value = false; diff --git a/web/satellite/vuetify-poc/src/components/dialogs/createAccessSteps/CreateNewAccessStep.vue b/web/satellite/vuetify-poc/src/components/dialogs/createAccessSteps/CreateNewAccessStep.vue index f5ab2e1ba..b181ac8da 100644 --- a/web/satellite/vuetify-poc/src/components/dialogs/createAccessSteps/CreateNewAccessStep.vue +++ b/web/satellite/vuetify-poc/src/components/dialogs/createAccessSteps/CreateNewAccessStep.vue @@ -2,7 +2,7 @@ // See LICENSE for copying information.