Avoid showing dialogs at page load.
This commit is contained in:
parent
7311ffdff1
commit
b2188eee68
|
@ -41,9 +41,6 @@ defineExpose({ show, close })
|
|||
watchEffect(() => {
|
||||
if (dialog.value) show()
|
||||
})
|
||||
onMounted(() => {
|
||||
show()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<ModalDialog name=settings title="Settings">
|
||||
<ModalDialog name=settings2 title="Settings">
|
||||
<form>
|
||||
<template v-if="store.user.isLoggedIn">
|
||||
<h3>Update your authentication</h3>
|
||||
|
|
|
@ -153,8 +153,8 @@ function handleUpdateMessage(updateData: { update: UpdateEntry[] }) {
|
|||
function handleError(msg: errorEvent) {
|
||||
const store = useMainStore()
|
||||
if (msg.error.code === 401) {
|
||||
store.user.dialog = 'login'
|
||||
store.user.isLoggedIn = false
|
||||
store.dialog = 'login'
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user