From 0f2240c87a5c0a22e2db97e4d2b82a52401be668 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Thu, 15 Feb 2024 17:23:22 +0000
Subject: Add modals

---
 src/components/Editor/Quest/QuestOptionsPanel.vue | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

(limited to 'src/components/Editor/Quest/QuestOptionsPanel.vue')

diff --git a/src/components/Editor/Quest/QuestOptionsPanel.vue b/src/components/Editor/Quest/QuestOptionsPanel.vue
index 3495d60..3c1e599 100644
--- a/src/components/Editor/Quest/QuestOptionsPanel.vue
+++ b/src/components/Editor/Quest/QuestOptionsPanel.vue
@@ -1,8 +1,9 @@
 <script setup lang="ts">
 import { useSessionStore, type EditorQuest } from '@/stores/session';
-import { computed } from 'vue';
+import { computed, ref } from 'vue';
 import EditorOptionsPanel from '@/components/Editor/EditorOptionsPanel.vue';
 import Checkbox from '@/components/Control/Checkbox.vue';
+import DeleteQuestModal from '@/components/Editor/Quest/Modal/DeleteQuestModal.vue';
 
 const props = defineProps<{
   questId: string;
@@ -19,6 +20,8 @@ const knownCategories = computed(() => {
 const knownQuests = computed(() => {
   return sessionStore.session.quests.map((quest) => quest.id);
 });
+
+const showDeleteModal = ref(false);
 </script>
 
 <template>
@@ -121,6 +124,11 @@ const knownQuests = computed(() => {
       </div>
     </div>
   </EditorOptionsPanel>
+  
+  <DeleteQuestModal
+    v-model="showDeleteModal"
+    :questId="props.questId"
+  /> 
 </template>
 
 <style src="vue-multiselect/dist/vue-multiselect.css" />
@@ -132,20 +140,10 @@ const knownQuests = computed(() => {
   gap: 1rem;
 }
 
-.option-group {
-  display: flex;
-  flex-direction: column;
-  gap: 0.5rem;
-}
-
 .description {
   font-size: 0.8em;
 }
 
-label {
-  font-weight: 700;
-}
-
 h2 {
   border-bottom: 1px solid var(--color-border);
 }
-- 
cgit v1.2.3-70-g09d2

