60 lines
1.2 KiB
Vue
60 lines
1.2 KiB
Vue
<template>
|
|
<SmartModal v-if="show" @close="hideModal">
|
|
<div slot="header">
|
|
<div class="row-wrapper">
|
|
<h3 class="heading">{{ $t("confirm") }}</h3>
|
|
<div>
|
|
<button class="icon button" @click="hideModal">
|
|
<i class="material-icons">close</i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div slot="body" class="flex flex-col">
|
|
<label>{{ title }}</label>
|
|
</div>
|
|
<div slot="footer">
|
|
<div class="row-wrapper">
|
|
<span></span>
|
|
<span>
|
|
<button class="icon button" @click="hideModal">
|
|
{{ no }}
|
|
</button>
|
|
<button class="icon button primary" @click="resolve">
|
|
{{ yes }}
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</SmartModal>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
show: Boolean,
|
|
title: { type: String, default: null },
|
|
yes: {
|
|
type: String,
|
|
default() {
|
|
return this.$t("yes")
|
|
},
|
|
},
|
|
no: {
|
|
type: String,
|
|
default() {
|
|
return this.$t("no")
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
hideModal() {
|
|
this.$emit("hide-modal")
|
|
},
|
|
resolve() {
|
|
this.$emit("resolve")
|
|
},
|
|
},
|
|
}
|
|
</script>
|