Skip to content

Commit

Permalink
💄 高度な設定をまとめる
Browse files Browse the repository at this point in the history
ネストしたフォームのデザインが無かったのでもうちょっとデザイン考える必要アリ
  • Loading branch information
eyemono-moe committed Dec 7, 2023
1 parent b05f2b2 commit 86c6058
Showing 1 changed file with 34 additions and 32 deletions.
66 changes: 34 additions & 32 deletions dashboard/src/components/templates/app/BuildConfigs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,38 +97,40 @@ const RuntimeConfigs: Component<RuntimeConfigProps> = (props) => {
</ToolTip>
</FormItem>
</Show>
<Field of={props.formStore} name="config.runtimeConfig.entrypoint">
{(field, fieldProps) => (
<TextField
label="Entrypoint"
info={{
props: {
content: '(Advanced) コンテナのEntrypoint',
},
}}
{...fieldProps}
value={field.value ?? ''}
error={field.error}
readOnly={!props.hasPermission}
/>
)}
</Field>
<Field of={props.formStore} name="config.runtimeConfig.command">
{(field, fieldProps) => (
<TextField
label="Command"
info={{
props: {
content: '(Advanced) コンテナのCommand',
},
}}
{...fieldProps}
value={field.value ?? ''}
error={field.error}
readOnly={!props.hasPermission}
/>
)}
</Field>
<FormItem title="高度な設定">
<Field of={props.formStore} name="config.runtimeConfig.entrypoint">
{(field, fieldProps) => (
<TextField
label="Entrypoint"
info={{
props: {
content: '(Advanced) コンテナのEntrypoint',
},
}}
{...fieldProps}
value={field.value ?? ''}
error={field.error}
readOnly={!props.hasPermission}
/>
)}
</Field>
<Field of={props.formStore} name="config.runtimeConfig.command">
{(field, fieldProps) => (
<TextField
label="Command"
info={{
props: {
content: '(Advanced) コンテナのCommand',
},
}}
{...fieldProps}
value={field.value ?? ''}
error={field.error}
readOnly={!props.hasPermission}
/>
)}
</Field>
</FormItem>
</>
)
}
Expand Down

0 comments on commit 86c6058

Please sign in to comment.