mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix: redirect to home in PostInstall if already installed
This commit is contained in:
parent
6888ccb571
commit
2ba27d6c33
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import router from '@/router'
|
||||||
import { computed, reactive, ref } from 'vue'
|
import { computed, reactive, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
|
@ -6,6 +7,7 @@ import api from '@/api'
|
||||||
import { APIBadRequestError } from '@/api/errors'
|
import { APIBadRequestError } from '@/api/errors'
|
||||||
import { useForm } from '@/composables/form'
|
import { useForm } from '@/composables/form'
|
||||||
import { useAutoModal } from '@/composables/useAutoModal'
|
import { useAutoModal } from '@/composables/useAutoModal'
|
||||||
|
import { useInfos } from '@/composables/useInfos'
|
||||||
import {
|
import {
|
||||||
alphalownumdot_,
|
alphalownumdot_,
|
||||||
minLength,
|
minLength,
|
||||||
|
@ -20,6 +22,11 @@ import { DomainForm } from '@/views/_partials'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const modalConfirm = useAutoModal()
|
const modalConfirm = useAutoModal()
|
||||||
|
const { installed } = useInfos()
|
||||||
|
|
||||||
|
if (installed.value) {
|
||||||
|
router.push({ name: 'home' })
|
||||||
|
}
|
||||||
|
|
||||||
type Steps = 'start' | 'domain' | 'user' | 'rootfsspace-error' | 'login'
|
type Steps = 'start' | 'domain' | 'user' | 'rootfsspace-error' | 'login'
|
||||||
const step = ref<Steps>('start')
|
const step = ref<Steps>('start')
|
||||||
|
|
Loading…
Add table
Reference in a new issue