-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added validation for model names and disabled the NIM models met…
…rics hyperlink on the Models tab Signed-off-by: Olga Lavtar <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
17 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
15 changes: 10 additions & 5 deletions
15
frontend/src/pages/modelServing/screens/projects/InferenceServiceModal/ProjectSection.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,14 +1,19 @@ | ||
import * as React from 'react'; | ||
import { FormGroup, Text } from '@patternfly/react-core'; | ||
import { translateDisplayNameForK8sAndReport } from '~/concepts/k8s/utils'; | ||
|
||
type ProjectSectionType = { | ||
projectName: string; | ||
}; | ||
|
||
const ProjectSection: React.FC<ProjectSectionType> = ({ projectName }) => ( | ||
<FormGroup label="Project"> | ||
<Text>{projectName}</Text> | ||
</FormGroup> | ||
); | ||
const ProjectSection: React.FC<ProjectSectionType> = ({ projectName }) => { | ||
const [translatedName] = translateDisplayNameForK8sAndReport(projectName); | ||
|
||
return ( | ||
<FormGroup label="Project"> | ||
<Text>{translatedName}</Text> | ||
</FormGroup> | ||
); | ||
}; | ||
|
||
export default ProjectSection; |