aboutsummaryrefslogtreecommitdiff
path: root/client/src/components/Modal.vue
blob: 90574bb03bbeea1c9bacd5868b049b947a3e34f9 (plain) (blame)
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
30
<template>
  <div class="modal d-block" tabindex="-1">
    <div class="modal-dialog modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title">{{ title }}</h5>
          <button type="button" class="btn-close" @click="close"></button>
        </div>
        <div class="modal-body">
          <slot></slot>
        </div>
      </div>
    </div>
  </div>
  <div class="modal-backdrop show"></div>
</template>

<script>
export default {
  name: 'Modal',
  props: {
    title: String,
  },
  methods: {
    close() {
      this.$emit('close');
    }
  }
}
</script>