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,
|
|
|
|
onClose: Function,
|
|
|
|
onConfirm: Function,
|
|
|
|
title: String,
|
|
|
|
message: String,
|
|
|
|
confirmText: String,
|
|
|
|
rejectText: String,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|