add ability to not query /installed in login component

This commit is contained in:
axolotle 2021-04-10 17:33:47 +02:00
parent 3f3fd2585f
commit 4cc6159479
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -48,7 +48,7 @@
<p class="alert alert-success">
<icon iname="thumbs-up" /> {{ $t('installation_complete') }}
</p>
<login />
<login skip-install-check />
</template>
</div>
</template>