fix(ui): egress hosts add on blur and paste; Docker-only container fields hide under OpenShell (#1967)
This commit is contained in:
1 file changed
+5
-2
@@ -263,7 +263,7 @@ function formatHours(seconds: number): string {
|
||||
</form.Field>
|
||||
|
||||
<form.Field v-slot="{ field }" name="pull_policy">
|
||||
<Field orientation="responsive">
|
||||
<Field v-if="!onOpenShell" orientation="responsive">
|
||||
<FieldContent><FieldLabel>Pull policy</FieldLabel></FieldContent>
|
||||
<div class="flex min-w-0 flex-wrap items-center gap-3 @md/field-group:flex-1">
|
||||
<ToggleGroup
|
||||
@@ -334,7 +334,7 @@ function formatHours(seconds: number): string {
|
||||
</form.Field>
|
||||
|
||||
<form.Field v-slot="{ field }" name="network">
|
||||
<Field orientation="responsive">
|
||||
<Field v-if="!onOpenShell" orientation="responsive">
|
||||
<FieldContent>
|
||||
<FieldLabel for="cr-network">Network</FieldLabel>
|
||||
<FieldDescription>Empty: auto-detect.</FieldDescription>
|
||||
@@ -360,6 +360,9 @@ function formatHours(seconds: number): string {
|
||||
:model-value="field.state.value ?? []"
|
||||
class="font-mono"
|
||||
aria-label="Egress hosts"
|
||||
add-on-blur
|
||||
add-on-paste
|
||||
:delimiter="/[\s,]+/"
|
||||
@update:model-value="(v) => field.handleChange(v as string[])"
|
||||
>
|
||||
<TagsInputItem v-for="h in field.state.value ?? []" :key="h" :value="h">
|
||||
|
||||
Reference in new issue
Block a user