Better UX for profile view logout buttons.

This commit is contained in:
2025-10-05 04:22:16 +00:00
parent 01bc39a0e8
commit eaa16abe2a
3 changed files with 25 additions and 7 deletions
+2 -3
View File
@@ -14,15 +14,14 @@
<script setup>
import { onMounted, ref } from 'vue'
import { useAuthStore } from '@/stores/auth'
import { getSettings } from '@/utils/settings'
import StatusMessage from '@/components/StatusMessage.vue'
import ProfileView from '@/components/ProfileView.vue'
const store = useAuthStore()
const initialized = ref(false)
onMounted(async () => {
const settings = await getSettings()
if (settings?.rp_name) document.title = settings.rp_name
await store.loadSettings()
if (store.settings?.rp_name) document.title = store.settings.rp_name
try { await store.loadUserInfo() } catch (_) { /* user info load errors ignored */ }
initialized.value = true
})