diff --git a/_data/serverState.ts b/_data/serverState.ts index 816e29080..44e9bbed1 100644 --- a/_data/serverState.ts +++ b/_data/serverState.ts @@ -51,14 +51,14 @@ export const serverState: Server = { guid: randomGuid, // "guid": "0781-5583-8355-81071A2B0211", inIframe: false, - keyfile: 'DUMMY_KEYFILE', + // keyfile: 'DUMMY_KEYFILE', lanIp: '192.168.254.36', license: '', locale: 'en_US', name: 'fuji', connectPluginInstalled: 'dynamix.unraid.net.staging.plg', // connectPluginInstalled: '', - registered: true, + registered: false, regGen: 0, // "regGuid": "0781-5583-8355-81071A2B0211", site: 'http://localhost:4321', diff --git a/components/UserProfile/CallbackFeedback.vue b/components/UserProfile/CallbackFeedback.vue index 5119aa3da..6456230b6 100644 --- a/components/UserProfile/CallbackFeedback.vue +++ b/components/UserProfile/CallbackFeedback.vue @@ -45,7 +45,7 @@ const { connectPluginInstalled, registered, authAction, - refreshedServerState, + refreshServerStateStatus, } = storeToRefs(serverStore); /** @@ -90,11 +90,11 @@ const subheading = computed(() => { const closeText = computed(() => { const txt = !connectPluginInstalled.value ? 'No Thanks' : 'Close'; - return refreshedServerState.value ? txt : 'Reload'; + return refreshServerStateStatus.value === 'done' ? txt : 'Reload'; }); const close = () => { if (callbackStatus.value === 'loading') { return console.debug('[close] not allowed'); } - return refreshedServerState.value + return refreshServerStateStatus.value === 'done' ? callbackActionsStore.setCallbackStatus('ready') : window.location.reload(); }; diff --git a/components/UserProfile/DropdownConnectStatus.vue b/components/UserProfile/DropdownConnectStatus.vue index d54ea3207..bc5b55e8f 100644 --- a/components/UserProfile/DropdownConnectStatus.vue +++ b/components/UserProfile/DropdownConnectStatus.vue @@ -6,14 +6,6 @@ import { useServerStore } from '~/store/server'; const serverStore = useServerStore(); const { cloud } = storeToRefs(serverStore); - -onMounted(() => { - console.debug('[DropdownConnectStatus:mounted] cloud', cloud.value); -}); - -watch(cloud, (newVal, oldVal) => { - console.log('[watch:cloud]', newVal, oldVal); -});