aboutsummaryrefslogtreecommitdiffstats
path: root/components/editor/quest/modal/Delete.vue
diff options
context:
space:
mode:
Diffstat (limited to 'components/editor/quest/modal/Delete.vue')
-rw-r--r--components/editor/quest/modal/Delete.vue30
1 files changed, 30 insertions, 0 deletions
diff --git a/components/editor/quest/modal/Delete.vue b/components/editor/quest/modal/Delete.vue
new file mode 100644
index 0000000..47c6388
--- /dev/null
+++ b/components/editor/quest/modal/Delete.vue
@@ -0,0 +1,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', 'fa-times']" :label="'Cancel'" @click="model = false"></Button>
+ <Button type="solid" :icon="['fas', 'fa-trash']" :label="'Delete'" @click="emit('delete')"></Button>
+ </div>
+ </Modal>
+</template>
+
+<style scoped>
+#confirm {
+ display: flex;
+ justify-content: flex-end;
+ margin-top: 1rem;
+}
+</style> \ No newline at end of file