Add unclosable modals (#70)
This commit is contained in:
parent
2bdd0a0e8d
commit
61e00f1620
@ -6,13 +6,13 @@
|
|||||||
noblur: props.noblur,
|
noblur: props.noblur,
|
||||||
}"
|
}"
|
||||||
class="modal-overlay"
|
class="modal-overlay"
|
||||||
@click="hide"
|
@click="() => (closable ? hide() : {})"
|
||||||
/>
|
/>
|
||||||
<div class="modal-container" :class="{ shown: actuallyShown }">
|
<div class="modal-container" :class="{ shown: actuallyShown }">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div v-if="props.header" class="header">
|
<div v-if="props.header" class="header">
|
||||||
<h1>{{ props.header }}</h1>
|
<h1>{{ props.header }}</h1>
|
||||||
<button class="btn icon-only transparent" @click="hide">
|
<button v-if="closable" class="btn icon-only transparent" @click="hide">
|
||||||
<XIcon />
|
<XIcon />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -38,6 +38,10 @@ const props = defineProps({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
closable: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const shown = ref(false)
|
const shown = ref(false)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Modal ref="modal" :header="props.title">
|
<Modal ref="modal" :header="props.title" :noblur="noblur">
|
||||||
<div class="modal-delete">
|
<div class="modal-delete">
|
||||||
<div class="markdown-body" v-html="renderString(props.description)" />
|
<div class="markdown-body" v-html="renderString(props.description)" />
|
||||||
<label v-if="props.hasToType" for="confirmation" class="confirmation-label">
|
<label v-if="props.hasToType" for="confirmation" class="confirmation-label">
|
||||||
@ -61,6 +61,10 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
default: 'Proceed',
|
default: 'Proceed',
|
||||||
},
|
},
|
||||||
|
noblur: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['proceed'])
|
const emit = defineEmits(['proceed'])
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Modal ref="modal" :header="`Report ${props.itemType}`">
|
<Modal ref="modal" :header="`Report ${props.itemType}`" :noblur="noblur">
|
||||||
<div class="modal-report">
|
<div class="modal-report">
|
||||||
<div class="markdown-body">
|
<div class="markdown-body">
|
||||||
<p>
|
<p>
|
||||||
@ -76,6 +76,10 @@ const props = defineProps({
|
|||||||
type: Function,
|
type: Function,
|
||||||
default: () => {},
|
default: () => {},
|
||||||
},
|
},
|
||||||
|
noblur: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const reportType = ref('')
|
const reportType = ref('')
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "omorphia",
|
"name": "omorphia",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.4.28",
|
"version": "0.4.29",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
"lib"
|
"lib"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user