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 {
|
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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue