git.99rst.org
/
flatnotes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
7003c42
)
Allow modal title prop to be omitted
author
Adam Dullage
<redacted>
Wed, 8 May 2024 18:46:59 +0000
(19:46 +0100)
committer
Adam Dullage
<redacted>
Wed, 8 May 2024 18:46:59 +0000
(19:46 +0100)
client/components/Modal.vue
patch
|
blob
|
history
diff --git
a/client/components/Modal.vue
b/client/components/Modal.vue
index 9274f9a632c588f1635fe8c4c0398bd60fffa9f4..7b7234bdb67b43b7f123f57f7c98948d8051f87d 100644
(file)
--- a/
client/components/Modal.vue
+++ b/
client/components/Modal.vue
@@
-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