Skip to content

Commit 7f5c0ef

Browse files
committed
Add option for making dialog modal
1 parent d3e49a7 commit 7f5c0ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/BaseDialog.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-dialog :value="value" @input="$emit('input', $event)">
2+
<v-dialog :value="value" :persistent="modal" @input="$emit('input', $event)">
33
<v-card class="DialogCard">
44
<v-card-title class="DialogCardTitle">
55
<v-icon class="DialogCardTitleIcon" size="48">{{ iconName }}</v-icon>
@@ -45,6 +45,7 @@ type Props = {
4545
hideDefaultCancelButton: boolean
4646
defaultCancelButtonLabel: string
4747
actions: DialogAction[]
48+
modal: boolean
4849
value: boolean
4950
}
5051
@@ -74,6 +75,11 @@ export default Vue.extend<unknown, Methods, unknown, Props>({
7475
type: Array as () => DialogAction[],
7576
required: true
7677
},
78+
modal: {
79+
type: Boolean,
80+
required: false,
81+
default: false
82+
},
7783
value: {
7884
type: Boolean,
7985
default: false

0 commit comments

Comments
 (0)