forked from opendatahub-io/odh-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
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 opendatahub-io#2810 from gitdallas/feat/mr-admin-s…
…caffolding feat(mr): mr settings scaffolding
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 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
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
50 changes: 50 additions & 0 deletions
50
frontend/src/pages/modelRegistrySettings/ModelRegistrySettings.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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import { | ||
Button, | ||
EmptyState, | ||
EmptyStateActions, | ||
EmptyStateBody, | ||
EmptyStateFooter, | ||
EmptyStateHeader, | ||
EmptyStateIcon, | ||
EmptyStateVariant, | ||
} from '@patternfly/react-core'; | ||
import { PlusCircleIcon } from '@patternfly/react-icons'; | ||
import ApplicationsPage from '~/pages/ApplicationsPage'; | ||
|
||
const ModelRegistrySettings: React.FC = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<ApplicationsPage | ||
title="Model Registry Settings" | ||
description="Manage model registry settings for all users in your organization." | ||
loaded | ||
empty={false} | ||
errorMessage="Unable to load model registry settings." | ||
emptyMessage="No model registry settings found." | ||
provideChildrenPadding | ||
> | ||
<EmptyState variant={EmptyStateVariant.lg}> | ||
<EmptyStateHeader | ||
titleText="No model registries" | ||
icon={<EmptyStateIcon icon={PlusCircleIcon} />} | ||
headingLevel="h5" | ||
/> | ||
<EmptyStateBody> | ||
You can create model registries for specific users or projects. | ||
</EmptyStateBody> | ||
<EmptyStateFooter> | ||
<EmptyStateActions> | ||
<Button variant="primary" onClick={() => navigate('/modelRegistry')}> | ||
Create model registry | ||
</Button> | ||
</EmptyStateActions> | ||
</EmptyStateFooter> | ||
</EmptyState> | ||
</ApplicationsPage> | ||
); | ||
}; | ||
|
||
export default ModelRegistrySettings; |
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