refactor: position state data error above key actions in dropdown

This commit is contained in:
Zack Spear
2023-06-26 15:47:36 -07:00
committed by Zack Spear
parent 41225e8c4e
commit 2cafeff93a

View File

@@ -83,6 +83,8 @@ const links = computed(():UserProfileLink[] => {
</h2>
</header>
<ul class="list-reset flex flex-col gap-y-4px p-0">
<UpcDropdownError v-if="stateData.error" />
<template v-if="keyActions">
<li v-for="action in keyActions" :key="action.name">
<UpcDropdownItem :item="action" />
@@ -93,8 +95,8 @@ const links = computed(():UserProfileLink[] => {
<UpcKeyline />
</li>
<UpcDropdownError v-if="stateData.error" />
<UpcDropdownConnectStatus v-else-if="registered && pluginInstalled" />
<UpcDropdownConnectStatus v-if="!stateData.error && registered && pluginInstalled" />
<template v-if="links">
<li v-for="(link, index) in links" :key="`link_${index}`">