aboutsummaryrefslogtreecommitdiff
path: root/src/components/confirm_modal/confirm_modal.vue
blob: 59e46dc185aa9ea04c5c8f88634e9cc7a382f53b (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-if="showing"
    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>