aboutsummaryrefslogtreecommitdiff
path: root/src/components/confirm_modal/confirm_modal.vue
blob: 1ac64b625c9b47a358c13d608cefaa833d9a78b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<template>
  <dialog-modal
    v-body-scroll-lock="true"
    class="confirm-modal"
    :on-cancel="onCancel"
  >
    <template v-slot:header>
      <span v-text="title" />
    </template>

    <slot />

    <template v-slot:footer>
      <button
        class="btn button-default"
        @click.prevent="onAccept"
        v-text="confirmText"
      />

      <button
        class="btn button-default"
        @click.prevent="onCancel"
        v-text="cancelText"
      />
    </template>
  </dialog-modal>
</template>

<script src="./confirm_modal.js"></script>