mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
add ability to not query /installed in login component
This commit is contained in:
parent
3f3fd2585f
commit
4cc6159479
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue