refactor: launchpad copy conditionals

This commit is contained in:
Zack Spear
2023-07-07 14:57:28 -07:00
parent 839664d1f5
commit 33fa5075e7

View File

@@ -6,7 +6,7 @@ import '~/assets/main.css';
const { expireTime, pluginInstalled, registered, state, stateData } = storeToRefs(useServerStore());
const showConnectCopy = computed(() => (pluginInstalled.value && !registered.value));
const showConnectCopy = computed(() => (pluginInstalled.value && !registered.value && !stateData.value?.error));
const heading = computed(() => {
if (showConnectCopy.value) return 'Thank you for installing Connect!';