From addf95bc7e1e694cd9ba7797c8b0847bfecaf54c Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Tue, 12 Mar 2024 17:48:23 +0000
Subject: Add nuxt prefixes back to component file names

---
 .../editor/quest/modal/EditorQuestModalDelete.vue  | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 components/editor/quest/modal/EditorQuestModalDelete.vue

(limited to 'components/editor/quest/modal/EditorQuestModalDelete.vue')

diff --git a/components/editor/quest/modal/EditorQuestModalDelete.vue b/components/editor/quest/modal/EditorQuestModalDelete.vue
new file mode 100644
index 0000000..e81bcc7
--- /dev/null
+++ b/components/editor/quest/modal/EditorQuestModalDelete.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', '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>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

