This commit is contained in:
Dede Fuji Abdul
2023-10-24 15:24:21 +07:00
parent 6931e06952
commit 96d8550cfe
9 changed files with 199 additions and 215 deletions

View File

@ -2,12 +2,9 @@
import { RouterView } from 'vue-router'
import { NotificationProvider } from '@/components/Notification'
import { useDialogStore } from '@/stores/dialog'
import ActionDialog from '@/components/Dialogs/ActionDialog.vue';
import CommandPalettes from '@/components/CommandPalettes.vue';
import { useCommandPalattesStore } from '@/stores/command';
import ActionDialog from '@/components/Dialogs/ActionDialog.vue'
import CommandPalettes from '@/components/CommandPalettes.vue'
const dialog = useDialogStore()
const command = useCommandPalattesStore()
</script>
<template>
@ -16,9 +13,7 @@ const command = useCommandPalattesStore()
:open="dialog.open" :title="dialog.title" :message="dialog.content" :confirm-text="dialog.confirmText"
:cancel-text="dialog.cancelText" @on-close="dialog.open = false" @on-confirm="dialog.onConfirm"
@on-cancel="dialog.onCancel" :type="dialog.type" />
<CommandPalettes :open="command.open" @onClose="command.handleOnDismissCommandPalettes" />
<CommandPalettes />
<RouterView />
</NotificationProvider>
</template>
<style scoped></style>
</template>