Skip to content

Commit

Permalink
fix: DEV-1682: model version selector only on edit of ml backend, fix…
Browse files Browse the repository at this point in the history
… form layout (#2533)

* feat: DEV-1682: add model version selector to ml backend edit form

* remove project based model version settings

* feat: DEV-1682: add toggle switch for ml_backend auto-update with FF implementation

* feat: DEV-1682: moving the original project model version settings to where its supposed to be

* fix: DEV-1682: model version selector only on edit of ml backend, fix form layout
  • Loading branch information
bmartel committed Jun 17, 2022
1 parent 1956b3b commit 7034d90
Showing 1 changed file with 25 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,35 @@ export const MachineLearningSettings = () => {
<TextArea name="description" label="Description" style={{ minHeight: 120 }}/>
</Form.Row>

<Form.Row columnCount={isFF(FF_DEV_1682) ? 3 : 1}>
{isFF(FF_DEV_1682) && (
<>
<ModelVersionSelector
object={backend}
apiName="modelVersions"
valueName="version"
label="Version"
/>

{isFF(FF_DEV_1682) && !!backend && (
<Form.Row columnCount={2}>
<ModelVersionSelector
object={backend}
apiName="modelVersions"
valueName="version"
label="Version"
/>
</Form.Row>
)}

{isFF(FF_DEV_1682) && (
<Form.Row columnCount={1}>
<div>
<Toggle
name="auto_update"
label="Allow version auto-update"
/>
</>
)}
<Toggle
name="is_interactive"
label="Use for interactive preannotations"
/>
</div>
</Form.Row>
)}

<Form.Row columnCount={1}>
<div>
<Toggle
name="is_interactive"
label="Use for interactive preannotations"
/>
</div>
</Form.Row>

<Form.Actions>
Expand Down

0 comments on commit 7034d90

Please sign in to comment.