aboutsummaryrefslogtreecommitdiffstats
path: root/components/editor/quest/modal/EditorQuestModalDelete.vue
blob: c4e168256ce3e0f96f0dc3d6c809295fb59972bc (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
30
31
32
33
34
35
36
37
38
<script setup lang="ts">
const model = defineModel();

const emit = defineEmits(['delete']);

defineProps({
  questId: String,
});
</script>

<template>
  <Modal v-model="model">
    <template v-slot:header>
      <h2>Really delete quest '{{ questId }}'?</h2>
    </template>
    <p>
      Are you sure you want to delete this quest? The quests editor does not have undo functionality
      (yet)!
    </p>
    <div id="confirm" class="control-group">
      <Button :icon="['fas', 'times']" :label="'Cancel'" @click="model = false"></Button>
      <Button
        type="solid"
        :icon="['fas', 'trash']"
        :label="'Delete'"
        @click="emit('delete')"
      ></Button>
    </div>
  </Modal>
</template>

<style scoped>
#confirm {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
</style>