2022-02-09 15:50:25 -05:00
|
|
|
<template>
|
2025-02-05 08:37:00 +02:00
|
|
|
<DialogModal
|
2022-04-09 23:11:19 -04:00
|
|
|
v-body-scroll-lock="true"
|
2022-02-09 16:51:13 -05:00
|
|
|
class="confirm-modal"
|
2025-02-05 08:37:00 +02:00
|
|
|
@cancel="onCancel"
|
2022-02-09 15:50:25 -05:00
|
|
|
>
|
2022-08-01 11:02:21 -04:00
|
|
|
<template #header>
|
2022-02-09 17:03:17 -05:00
|
|
|
<span v-text="title" />
|
2022-02-09 15:50:25 -05:00
|
|
|
</template>
|
|
|
|
|
|
2026-06-10 02:12:03 +03:00
|
|
|
<div class="content">
|
|
|
|
|
<FAIcon
|
|
|
|
|
icon="circle-question"
|
|
|
|
|
size="3x"
|
|
|
|
|
fixed-width
|
|
|
|
|
/>
|
|
|
|
|
<div class="text">
|
|
|
|
|
<slot />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-02-09 15:50:25 -05:00
|
|
|
|
2022-08-01 11:02:21 -04:00
|
|
|
<template #footer>
|
2025-07-17 15:13:13 +03:00
|
|
|
<slot name="footerLeft" />
|
2022-02-09 15:50:25 -05:00
|
|
|
<button
|
|
|
|
|
class="btn button-default"
|
2026-05-05 12:10:17 +03:00
|
|
|
:class="{ '-danger': confirmDanger }"
|
2022-02-09 15:50:25 -05:00
|
|
|
@click.prevent="onAccept"
|
2022-02-09 17:03:17 -05:00
|
|
|
v-text="confirmText"
|
|
|
|
|
/>
|
2022-02-09 15:50:25 -05:00
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
class="btn button-default"
|
|
|
|
|
@click.prevent="onCancel"
|
2022-02-09 17:03:17 -05:00
|
|
|
v-text="cancelText"
|
|
|
|
|
/>
|
2022-02-09 15:50:25 -05:00
|
|
|
</template>
|
2025-02-05 08:37:00 +02:00
|
|
|
</DialogModal>
|
2022-02-09 15:50:25 -05:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script src="./confirm_modal.js"></script>
|
2026-06-10 02:12:03 +03:00
|
|
|
<style lang="scss">
|
|
|
|
|
.confirm-modal {
|
|
|
|
|
.content {
|
|
|
|
|
display: flex;
|
2026-06-10 02:16:59 +03:00
|
|
|
align-items: center;
|
2026-06-10 02:12:03 +03:00
|
|
|
text-align: left;
|
2026-06-10 02:16:59 +03:00
|
|
|
justify-content: center;
|
|
|
|
|
line-height: 1.5;
|
2026-06-10 02:12:03 +03:00
|
|
|
|
|
|
|
|
p {
|
2026-06-10 02:16:59 +03:00
|
|
|
margin: 0.75em;
|
|
|
|
|
margin-right: 0;
|
2026-06-10 02:12:03 +03:00
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
max-width: 50ch;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|