2020-12-14 05:05:14 +00:00
|
|
|
<template>
|
2021-03-01 03:58:14 +00:00
|
|
|
<SmartModal v-if="show" @close="hideModal">
|
2021-06-30 08:46:02 +00:00
|
|
|
<template #header>
|
|
|
|
|
<h3 class="heading">{{ $t("confirm") }}</h3>
|
|
|
|
|
<div>
|
2021-07-03 13:14:58 +00:00
|
|
|
<ButtonSecondary icon="close" @click.native="hideModal" />
|
2020-12-14 05:05:14 +00:00
|
|
|
</div>
|
2021-06-30 08:46:02 +00:00
|
|
|
</template>
|
|
|
|
|
<template #body>
|
2021-07-17 17:40:28 +00:00
|
|
|
<div class="flex flex-col px-2">
|
2021-07-25 20:03:32 +00:00
|
|
|
<label class="font-semibold">
|
2021-07-09 17:19:45 +00:00
|
|
|
{{ title }}
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
2021-06-30 08:46:02 +00:00
|
|
|
</template>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<span>
|
2021-07-03 13:14:58 +00:00
|
|
|
<ButtonPrimary :label="yes" @click.native="resolve" />
|
2021-07-09 17:19:45 +00:00
|
|
|
<ButtonSecondary :label="no" @click.native="hideModal" />
|
2021-06-30 08:46:02 +00:00
|
|
|
</span>
|
|
|
|
|
</template>
|
2021-03-01 03:58:14 +00:00
|
|
|
</SmartModal>
|
2020-12-14 05:05:14 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
show: Boolean,
|
2021-05-18 16:09:55 +00:00
|
|
|
title: { type: String, default: null },
|
2020-12-14 05:05:14 +00:00
|
|
|
yes: {
|
|
|
|
|
type: String,
|
2021-05-18 09:27:29 +00:00
|
|
|
default() {
|
2020-12-14 05:05:14 +00:00
|
|
|
return this.$t("yes")
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
no: {
|
|
|
|
|
type: String,
|
2021-05-18 09:27:29 +00:00
|
|
|
default() {
|
2020-12-14 05:05:14 +00:00
|
|
|
return this.$t("no")
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
hideModal() {
|
|
|
|
|
this.$emit("hide-modal")
|
|
|
|
|
},
|
|
|
|
|
resolve() {
|
|
|
|
|
this.$emit("resolve")
|
2021-07-07 23:28:42 +00:00
|
|
|
this.$emit("hide-modal")
|
2020-12-14 05:05:14 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|