Skip to content

Commit 2335948

Browse files
authored
Fix issue with checkbox is not selected port return "no" (hestiacp#3616)
Also Email, Password or Hostname
1 parent 4cd9264 commit 2335948

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/.vitepress/theme/components/InstallOptions.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ export default {
2727
},
2828
methods: {
2929
getOptionString(item: InstallOptions): string {
30-
if (item.textField && item.selected) {
31-
return item.text.length >= 2 ? `${item.param} '${item.text}'` : "";
30+
if (item.textField) {
31+
return item.selected ? `${item.param} '${item.text}'` : "";
3232
}
3333
3434
if (item.selectField) {
35-
return `${item.param} '${item.text}'`;
35+
return item.selected ? `${item.param} '${item.text}'` : "";
3636
}
3737
3838
return item.param.includes("force") && item.selected
@@ -107,7 +107,13 @@ export default {
107107
<p>{{ item.desc }}</p>
108108
</template>
109109
<div v-if="item.textField">
110-
<input type="text" class="form-control" v-model="item.text" :id="'input-' + item.id" />
110+
<input
111+
type="text"
112+
class="form-control"
113+
v-model="item.text"
114+
:id="'input-' + item.id"
115+
:type="'+item.type+'"
116+
/>
111117
</div>
112118
<div v-if="item.selectField">
113119
<select class="form-select" v-model="item.text" :id="'input-' + item.id">

0 commit comments

Comments
 (0)