aboutsummaryrefslogtreecommitdiffstats
path: root/components/editor/quest/modal/EditorQuestModalDelete.vue
blob: e81bcc729b0b2782979e0df03a834b9af2f9eda4 (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
<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>