feat: implement unauthorized error handling and login popup
Deploy Miniplan / build (push) Failing after 42s
Deploy Miniplan / build (push) Failing after 42s
This commit is contained in:
@@ -5,6 +5,7 @@ import LoginPanel from "@/components/LoginPanel.vue";
|
||||
import {onMounted, ref} from "vue";
|
||||
import {Auth} from "@/services/auth";
|
||||
import DialogHost from "@/components/dialog/DialogHost.vue";
|
||||
import {LoginService} from "@/services/LoginService";
|
||||
|
||||
let showPopup = ref(false)
|
||||
let loggedIn = ref(false)
|
||||
@@ -25,6 +26,10 @@ onMounted(() => {
|
||||
Auth.checkForToken()
|
||||
})
|
||||
|
||||
LoginService.subject.subscribe(() => {
|
||||
showPopup.value = true
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user