9606abe251
* Fix all the eslint warnings * Revert the schema
32 lines
834 B
Vue
32 lines
834 B
Vue
<template>
|
|
<modal :show.sync="show" :on-close="onClose">
|
|
<woot-modal-header :header-title="title" :header-content="message" />
|
|
<div class="modal-footer delete-item">
|
|
<button class="alert button nice" @click="onConfirm">
|
|
{{ confirmText }}
|
|
</button>
|
|
<button class="button clear" @click="onClose">
|
|
{{ rejectText }}
|
|
</button>
|
|
</div>
|
|
</modal>
|
|
</template>
|
|
|
|
<script>
|
|
import Modal from '../../Modal';
|
|
|
|
export default {
|
|
components: {
|
|
Modal,
|
|
},
|
|
props: {
|
|
show: Boolean,
|
|
onClose: { type: Function, default: () => {} },
|
|
onConfirm: { type: Function, default: () => {} },
|
|
title: { type: String, default: '' },
|
|
message: { type: String, default: '' },
|
|
confirmText: { type: String, default: '' },
|
|
rejectText: { type: String, default: '' },
|
|
},
|
|
};
|
|
</script>
|