2019-08-14 09:48:44 +00:00
|
|
|
<template>
|
2019-12-21 17:24:35 +00:00
|
|
|
<modal :show.sync="show" :on-close="onClose">
|
2022-09-01 07:57:08 +00:00
|
|
|
<woot-modal-header
|
|
|
|
:header-title="title"
|
|
|
|
:header-content="message"
|
|
|
|
:header-content-value="messageValue"
|
|
|
|
/>
|
2019-08-14 09:48:44 +00:00
|
|
|
<div class="modal-footer delete-item">
|
2022-09-01 07:57:08 +00:00
|
|
|
<woot-button variant="clear" class="action-button" @click="onClose">
|
2020-05-17 15:37:45 +00:00
|
|
|
{{ rejectText }}
|
2022-09-01 07:57:08 +00:00
|
|
|
</woot-button>
|
|
|
|
<woot-button
|
|
|
|
color-scheme="alert"
|
|
|
|
class="action-button"
|
|
|
|
variant="smooth"
|
|
|
|
@click="onConfirm"
|
|
|
|
>
|
|
|
|
{{ confirmText }}
|
|
|
|
</woot-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: '' },
|
2022-09-01 07:57:08 +00:00
|
|
|
messageValue: { type: String, default: '' },
|
2021-12-27 08:19:31 +00:00
|
|
|
confirmText: { type: String, default: '' },
|
|
|
|
rejectText: { type: String, default: '' },
|
2019-08-14 09:48:44 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
2022-09-01 07:57:08 +00:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
.action-button {
|
|
|
|
max-width: var(--space-giga);
|
|
|
|
}
|
|
|
|
</style>
|