forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from kubeflow/main
[pull] main from kubeflow:main
- Loading branch information
Showing
17 changed files
with
399 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
############### Default settings ############### | ||
CONTAINER_TOOL=docker | ||
IMG_BFF=kubeflow/model-registry-bff:dev-latest | ||
IMG_FRONTEND=kubeflow/model-registry-ui:dev-latest | ||
IMG_BFF=kubeflow/model-registry-bff:latest | ||
IMG_FRONTEND=kubeflow/model-registry-ui:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
approvers: | ||
- ederign | ||
- alexcreasy | ||
- lucferbux | ||
- Griffin-Sullivan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 12 additions & 10 deletions
22
...rontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
import React from 'react'; | ||
import { FormGroup, TextInput } from '@patternfly/react-core'; | ||
import FormFieldset from '~/app/pages/modelRegistry/screens/components/FormFieldset'; | ||
import { isMUITheme } from '~/shared/utilities/const'; | ||
|
||
type PrefilledModelRegistryFieldProps = { | ||
mrName?: string; | ||
}; | ||
|
||
const PrefilledModelRegistryField: React.FC<PrefilledModelRegistryFieldProps> = ({ mrName }) => ( | ||
<FormGroup className="form-group-disabled" label="Model registry" isRequired fieldId="mr-name"> | ||
<FormFieldset | ||
component={ | ||
<TextInput isDisabled isRequired type="text" id="mr-name" name="mr-name" value={mrName} /> | ||
} | ||
field="Model Registry" | ||
/> | ||
</FormGroup> | ||
); | ||
const PrefilledModelRegistryField: React.FC<PrefilledModelRegistryFieldProps> = ({ mrName }) => { | ||
const mrNameInput = ( | ||
<TextInput isDisabled isRequired type="text" id="mr-name" name="mr-name" value={mrName} /> | ||
); | ||
|
||
return ( | ||
<FormGroup className="form-group-disabled" label="Model registry" isRequired fieldId="mr-name"> | ||
{isMUITheme() ? <FormFieldset component={mrNameInput} field="Model Registry" /> : mrNameInput} | ||
</FormGroup> | ||
); | ||
}; | ||
|
||
export default PrefilledModelRegistryField; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.