AT Protocol login app for Open Web Desktop

Minor improvements

dxlliv 4afec017 32cfcdaa

+7 -9
+5 -7
runtime/components/Window/WindowAtprotoAccount.vue
··· 3 3 import {useAtprotoAccountStore} from "@owdproject/module-atproto/runtime/stores/storeAtprotoAccount"; 4 4 import AtprotoDesktopOwner from "../AtprotoDesktop/AtprotoDesktopOwner.vue"; 5 5 import {onBeforeMount, watch} from "vue" 6 + import {computed} from "@vue/reactivity" 7 + import {useI18n} from "vue-i18n" 6 8 7 9 const props = defineProps<{ 8 10 window: IWindowController ··· 42 44 } 43 45 44 46 const accountLabel = computed(() => { 45 - if (atprotoAccountStore.isAccountLogged) { 46 - if (!atprotoAccountStore.account.avatar) { 47 - return '?' 48 - } else { 49 - return undefined 50 - } 47 + if ((atprotoAccountStore.isAccountLogged && !atprotoAccountStore.account.avatar) || !atprotoAccountStore.isAccountLogged) { 48 + return '?' 51 49 } 52 50 53 - return atprotoAccountStore.account.handle.charAt(0) 51 + return undefined 54 52 }) 55 53 56 54 const accountAvatar = computed(() => {
+2 -2
runtime/plugin/index.ts
··· 1 1 import {defineNuxtPlugin} from "nuxt/app" 2 2 import {defineDesktopApp} from "@owdproject/core/runtime/utils/utilsDesktop" 3 - import configAppAbout from '../../owd.config' 3 + import configAppAtproto from '../../owd.config' 4 4 5 5 export default defineNuxtPlugin((nuxtApp) => { 6 6 nuxtApp.hook('app:created', async () => { 7 - await defineDesktopApp(configAppAbout) 7 + await defineDesktopApp(configAppAtproto) 8 8 }) 9 9 })