From 4cc61594799235376ad9c738058ae90fe7b40945 Mon Sep 17 00:00:00 2001 From: axolotle Date: Sat, 10 Apr 2021 17:33:47 +0200 Subject: [PATCH] add ability to not query /installed in login component --- app/src/views/Login.vue | 7 ++++++- app/src/views/PostInstall.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/views/Login.vue b/app/src/views/Login.vue index 63d61815..190447d6 100644 --- a/app/src/views/Login.vue +++ b/app/src/views/Login.vue @@ -32,9 +32,13 @@ export default { name: 'Login', + props: { + skipInstallCheck: { type: Boolean, default: false } + }, + data () { return { - disabled: true, + disabled: !this.skipInstallCheck, password: '', isValid: null, apiError: undefined @@ -51,6 +55,7 @@ export default { }, created () { + if (this.skipInstallCheck) return this.$store.dispatch('CHECK_INSTALL').then(installed => { if (installed) { this.disabled = false diff --git a/app/src/views/PostInstall.vue b/app/src/views/PostInstall.vue index 8edcae6a..4682e30a 100644 --- a/app/src/views/PostInstall.vue +++ b/app/src/views/PostInstall.vue @@ -48,7 +48,7 @@

{{ $t('installation_complete') }}

- +