mirror of
https://github.com/unraid/api.git
synced 2026-04-22 23:32:27 -05:00
fix: web component modals
This commit is contained in:
@@ -2,19 +2,23 @@
|
||||
import { storeToRefs } from 'pinia';
|
||||
import 'tailwindcss/tailwind.css';
|
||||
import '~/assets/main.css';
|
||||
|
||||
import { useCallbackStore } from '~/store/callback';
|
||||
|
||||
const callbackStore = useCallbackStore();
|
||||
const { callbackFeedbackVisible, decryptedData } = storeToRefs(callbackStore);
|
||||
onBeforeMount(() => {
|
||||
callbackStore.watcher();
|
||||
export interface Props {
|
||||
open?: boolean;
|
||||
}
|
||||
|
||||
withDefaults(defineProps<Props>(), {
|
||||
open: false,
|
||||
});
|
||||
|
||||
const callbackStore = useCallbackStore();
|
||||
const { decryptedData } = storeToRefs(callbackStore);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Modal
|
||||
:open="callbackFeedbackVisible"
|
||||
:open="open"
|
||||
@close="callbackStore.hide()"
|
||||
max-width="max-w-800px"
|
||||
>
|
||||
|
||||
@@ -3,15 +3,20 @@
|
||||
* @todo future idea – turn this into a carousel. each feature could have a short video if we ever them
|
||||
*/
|
||||
import { Switch, SwitchGroup, SwitchLabel } from '@headlessui/vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { usePromoStore } from '~/store/promo';
|
||||
|
||||
import type { UserProfilePromoFeature } from '~/types/userProfile';
|
||||
import 'tailwindcss/tailwind.css';
|
||||
import '~/assets/main.css';
|
||||
|
||||
export interface Props {
|
||||
open?: boolean;
|
||||
}
|
||||
|
||||
withDefaults(defineProps<Props>(), {
|
||||
open: false,
|
||||
});
|
||||
|
||||
const promoStore = usePromoStore();
|
||||
const { promoVisible } = storeToRefs(promoStore);
|
||||
|
||||
const features = ref<UserProfilePromoFeature[]>([
|
||||
{
|
||||
@@ -58,8 +63,9 @@ const installButtonClasses = 'text-white text-14px text-center w-full flex flex-
|
||||
|
||||
<template>
|
||||
<Modal
|
||||
:open="promoVisible"
|
||||
:open="open"
|
||||
@close="promoStore.promoHide()"
|
||||
:show-close-x="true"
|
||||
max-width="max-w-800px"
|
||||
>
|
||||
<div class="text-center relative w-full p-24px">
|
||||
|
||||
Reference in New Issue
Block a user