refactor: improved callbackfeedback and modal usage

This commit is contained in:
Zack Spear
2023-06-30 16:14:39 -07:00
parent 6b2d75dd9e
commit dc4a05916e
13 changed files with 239 additions and 207 deletions

View File

@@ -3,7 +3,6 @@ import { storeToRefs } from 'pinia';
import { ArrowRightOnRectangleIcon, ArrowTopRightOnSquareIcon, BarsArrowDownIcon, CogIcon, InformationCircleIcon, UserIcon } from '@heroicons/vue/24/solid';
import { ACCOUNT, CONNECT_DASHBOARD, PLUGIN_SETTINGS } from '~/helpers/urls';
import { useDropdownStore } from '~/store/dropdown';
import { usePromoStore } from '~/store/promo';
import { useServerStore } from '~/store/server';
import type { UserProfileLink } from '~/types/userProfile';
@@ -12,7 +11,6 @@ import type { ServerStateDataAction } from '~/types/server';
const myServersEnv = ref<string>('Staging');
const devEnv = ref<string>('development');
const dropdownStore = useDropdownStore();
const promoStore = usePromoStore();
const { keyActions, pluginInstalled, registered, stateData } = storeToRefs(useServerStore());
@@ -59,7 +57,6 @@ const links = computed(():UserProfileLink[] => {
{
click: () => {
promoStore.promoShow();
dropdownStore.dropdownHide();
},
icon: InformationCircleIcon,
text: 'Enhance your Unraid experience with Connect',