Line data Source code
1 : import QueueClearHistoryDialog from '@/components/queue/dialogs/QueueClearHistoryDialog.vue'
2 : import { useDialogStore } from '@/stores/dialogStore'
3 :
4 2355 : export const useQueueClearHistoryDialog = () => {
5 2008 : const dialogStore = useDialogStore()
6 :
7 2008 : const showQueueClearHistoryDialog = () => {
8 9 : dialogStore.showDialog({
9 : key: 'queue-clear-history',
10 : component: QueueClearHistoryDialog,
11 : dialogComponentProps: {
12 : headless: true,
13 : closable: false,
14 : dismissOnPointerDownOutside: true
15 : }
16 : })
17 : }
18 :
19 2008 : return {
20 : showQueueClearHistoryDialog
21 : }
22 : }
|