mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
refactor dialog props
This commit is contained in:
parent
54a4fe47be
commit
6ee981c970
5 changed files with 4 additions and 8 deletions
|
|
@ -86,7 +86,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import { defineMessage } from 'vue-intl'
|
||||
import type { DialogConfirmProps } from '@/types/DialogProps'
|
||||
import type { DialogConfirmProps } from '@/types/dialog'
|
||||
|
||||
const showDialog = defineModel<boolean>('dialog', { required: false })
|
||||
const emit = defineEmits<{
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { DialogConfirmEditProps } from '@/types/DialogProps'
|
||||
import type { DialogConfirmEditProps } from '@/types/dialog'
|
||||
|
||||
const showDialog = defineModel<boolean>('dialog', { required: false })
|
||||
const record = defineModel<unknown>('record', { required: true })
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { DialogSimpleProps } from '@/types/DialogProps'
|
||||
import type { DialogSimpleProps } from '@/types/dialog'
|
||||
|
||||
const showDialog = defineModel<boolean>('dialog', { required: false, default: false })
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
// Utilities
|
||||
import { defineStore } from 'pinia'
|
||||
import type {
|
||||
DialogConfirmEditProps,
|
||||
DialogConfirmProps,
|
||||
DialogSimpleProps,
|
||||
} from '@/types/DialogProps'
|
||||
import type { DialogConfirmEditProps, DialogConfirmProps, DialogSimpleProps } from '@/types/dialog'
|
||||
|
||||
/**
|
||||
* Reusable dialogs.
|
||||
|
|
|
|||
Loading…
Reference in a new issue