forked from urvishpatelce/lxd-app
test
This commit is contained in:
@ -68,8 +68,6 @@ import Spinner from '@/components/Spinner.vue'
|
||||
import Captcha from '@/components/Captcha.vue'
|
||||
|
||||
const output = ref('')
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
const loading = ref(true)
|
||||
const username = ref('')
|
||||
const password = ref('')
|
||||
@ -79,6 +77,7 @@ const captchaError = ref('')
|
||||
const allowAccess = ref(false)
|
||||
const interval = ref(null)
|
||||
const status = ref('starting')
|
||||
const errorMessage = ref('')
|
||||
|
||||
const POLL_MS = 5000
|
||||
const ALLOWED_REDIRECTS = new Set(['/', '/login', '/signin'])
|
||||
@ -103,6 +102,7 @@ async function checkStatus () {
|
||||
} catch (error) {
|
||||
loading.value = false
|
||||
status.value = 'error'
|
||||
console.log(error)
|
||||
errorMessage.value = error?.data?.message || 'Internal server error!'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user