2019-08-14 09:48:44 +00:00
|
|
|
<template>
|
2019-12-21 17:24:35 +00:00
|
|
|
<modal :show.sync="show" :on-close="onClose">
|
|
|
|
<woot-modal-header :header-title="title" :header-content="message" />
|
2019-08-14 09:48:44 +00:00
|
|
|
<div class="modal-footer delete-item">
|
2020-05-17 15:37:45 +00:00
|
|
|
<button class="alert button nice" @click="onConfirm">
|
2019-08-14 09:48:44 +00:00
|
|
|
{{ confirmText }}
|
|
|
|
</button>
|
2020-05-17 15:37:45 +00:00
|
|
|
<button class="button clear" @click="onClose">
|
|
|
|
{{ rejectText }}
|
|
|
|
</button>
|
2019-08-14 09:48:44 +00:00
|
|
|
</div>
|
|
|
|
</modal>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-05-17 15:37:45 +00:00
|
|
|
import Modal from '../../Modal';
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Modal,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
show: Boolean,
|
2021-12-27 08:19:31 +00:00
|
|
|
onClose: { type: Function, default: () => {} },
|
|
|
|
onConfirm: { type: Function, default: () => {} },
|
|
|
|
title: { type: String, default: '' },
|
|
|
|
message: { type: String, default: '' },
|
|
|
|
confirmText: { type: String, default: '' },
|
|
|
|
rejectText: { type: String, default: '' },
|
2019-08-14 09:48:44 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|