Allow modal title prop to be omitted
authorAdam Dullage <redacted>
Wed, 8 May 2024 18:46:59 +0000 (19:46 +0100)
committerAdam Dullage <redacted>
Wed, 8 May 2024 18:46:59 +0000 (19:46 +0100)
client/components/Modal.vue

index 9274f9a632c588f1635fe8c4c0398bd60fffa9f4..7b7234bdb67b43b7f123f57f7c98948d8051f87d 100644 (file)
@@ -17,7 +17,7 @@
         class="absolute right-1 top-1"
       />
       <!-- Title -->
-      <div class="mb-6 text-xl">{{ title }}</div>
+      <div v-if="title" class="mb-6 text-xl">{{ title }}</div>
       <slot></slot>
     </div>
   </div>
@@ -32,7 +32,7 @@ defineOptions({
   inheritAttrs: false,
 });
 const props = defineProps({
-  title: { type: String, default: "Confirm" },
+  title: { type: String },
   showClose: { type: Boolean },
   closeHandlerOverride: Function,
 });
git clone https://git.99rst.org/PROJECT