Skip to content

Commit 92af64f

Browse files
committed
docs: exclude options that don't meet requirements from template builder command
1 parent 88dcd76 commit 92af64f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/stacks/vue/TemplateBuilder.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
</div>
2424
</div>
2525
<div style="font-size: 12px; line-height: 1.3; margin-top: 4px">
26-
<div style="white-space: pre-wrap">{{ param.description }} <a v-if="param.link" :href="param.link" target="_blank"> Read More</a></div>
26+
<div style="white-space: pre-wrap">
27+
{{ param.description }}
28+
<a v-if="param.link" :href="param.link" target="_blank">
29+
Read More</a
30+
>
31+
</div>
2732

2833
<div
2934
v-if="param.requires"
@@ -139,13 +144,16 @@ const selections = ref([
139144
"DarkMode",
140145
"AuditLogs",
141146
"UserPictures",
142-
"LocalAuth" // https://github.com/IntelliTect/Coalesce/issues/522
147+
"LocalAuth", // https://github.com/IntelliTect/Coalesce/issues/522
143148
]);
144149
145150
watch(
146151
selections,
147152
(s) => {
148-
options.value = s.map((x) => "--" + x).join(" ");
153+
options.value = s
154+
.filter((x) => parameters.find((p) => p.key == x)?.meetsReqs)
155+
.map((x) => "--" + x)
156+
.join(" ");
149157
},
150158
{ immediate: true }
151159
);

0 commit comments

Comments
 (0)