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 { export default {
name: 'Login', name: 'Login',
props: {
skipInstallCheck: { type: Boolean, default: false }
},
data () { data () {
return { return {
disabled: true, disabled: !this.skipInstallCheck,
password: '', password: '',
isValid: null, isValid: null,
apiError: undefined apiError: undefined
@ -51,6 +55,7 @@ export default {
}, },
created () { created () {
if (this.skipInstallCheck) return
this.$store.dispatch('CHECK_INSTALL').then(installed => { this.$store.dispatch('CHECK_INSTALL').then(installed => {
if (installed) { if (installed) {
this.disabled = false this.disabled = false

View file

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