Skip to content

Commit

Permalink
Fixed httpget options not showing up (#12390)
Browse files Browse the repository at this point in the history
  • Loading branch information
eva-vashkevich authored Oct 29, 2024
1 parent d1a5d6b commit 41cd759
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 31 deletions.
60 changes: 31 additions & 29 deletions shell/components/form/HookOption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,35 +150,37 @@ export default {
<template v-if="selectHook === 'httpGet'">
<h4>{{ t('workload.container.lifecycleHook.httpGet.title') }}</h4>
<div class="var-row">
<template @update:value="update">
<LabeledInput
v-model:value="value.httpGet.host"
:label="t('workload.container.lifecycleHook.httpGet.host.label')"
:placeholder="t('workload.container.lifecycleHook.httpGet.host.placeholder')"
:mode="mode"
/>
<LabeledInput
v-model:value="value.httpGet.path"
:label="t('workload.container.lifecycleHook.httpGet.path.label')"
:placeholder="t('workload.container.lifecycleHook.httpGet.path.placeholder')"
:mode="mode"
/>
<LabeledInput
v-model:value.number="value.httpGet.port"
type="number"
:label="t('workload.container.lifecycleHook.httpGet.port.label')"
:placeholder="t('workload.container.lifecycleHook.httpGet.port.placeholder')"
:mode="mode"
required
/>
<LabeledSelect
v-model:value="value.httpGet.scheme"
:label="t('workload.container.lifecycleHook.httpGet.scheme.label')"
:placeholder="t('workload.container.lifecycleHook.httpGet.scheme.placeholder')"
:options="schemeOptions"
:mode="mode"
/>
</template>
<LabeledInput
v-model:value="value.httpGet.host"
:label="t('workload.container.lifecycleHook.httpGet.host.label')"
:placeholder="t('workload.container.lifecycleHook.httpGet.host.placeholder')"
:mode="mode"
@update:value="update"
/>
<LabeledInput
v-model:value="value.httpGet.path"
:label="t('workload.container.lifecycleHook.httpGet.path.label')"
:placeholder="t('workload.container.lifecycleHook.httpGet.path.placeholder')"
:mode="mode"
@update:value="update"
/>
<LabeledInput
v-model:value.number="value.httpGet.port"
type="number"
:label="t('workload.container.lifecycleHook.httpGet.port.label')"
:placeholder="t('workload.container.lifecycleHook.httpGet.port.placeholder')"
:mode="mode"
required
@update:value="update"
/>
<LabeledSelect
v-model:value="value.httpGet.scheme"
:label="t('workload.container.lifecycleHook.httpGet.scheme.label')"
:placeholder="t('workload.container.lifecycleHook.httpGet.scheme.placeholder')"
:options="schemeOptions"
:mode="mode"
@update:value="update"
/>
</div>

<h4>{{ t('workload.container.lifecycleHook.httpHeaders.title') }}</h4>
Expand Down
4 changes: 2 additions & 2 deletions shell/components/form/LifecycleHooks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
<HookOption
v-model:value="postStart"
:mode="mode"
@input="update"
@update:value="update"
/>
</div>

Expand All @@ -80,7 +80,7 @@ export default {
<HookOption
v-model:value="preStop"
:mode="mode"
@input="update"
@update:value="update"
/>
</div>
</div>
Expand Down

0 comments on commit 41cd759

Please sign in to comment.