forked from opendatahub-io/odh-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix performance issues in Model Serving Global
- Loading branch information
Showing
8 changed files
with
156 additions
and
16 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
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
41 changes: 41 additions & 0 deletions
41
frontend/src/pages/modelServing/screens/global/ModelServingLoading.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,41 @@ | ||
import { | ||
Button, | ||
EmptyState, | ||
EmptyStateActions, | ||
EmptyStateBody, | ||
EmptyStateFooter, | ||
EmptyStateHeader, | ||
EmptyStateVariant, | ||
PageSection, | ||
Spinner, | ||
} from '@patternfly/react-core'; | ||
import React from 'react'; | ||
|
||
type ModelServingLoadingProps = { | ||
title: string; | ||
description: string; | ||
onCancel: () => void; | ||
}; | ||
|
||
const ModelServingLoading: React.FC<ModelServingLoadingProps> = ({ | ||
title, | ||
description, | ||
onCancel, | ||
}) => ( | ||
<PageSection isFilled> | ||
<EmptyState variant={EmptyStateVariant.lg} data-id="loading-empty-state"> | ||
<Spinner size="xl" /> | ||
<EmptyStateHeader titleText={title} headingLevel="h1" /> | ||
<EmptyStateBody>{description}</EmptyStateBody> | ||
<EmptyStateFooter> | ||
<EmptyStateActions> | ||
<Button variant="primary" onClick={onCancel}> | ||
Cancel | ||
</Button> | ||
</EmptyStateActions> | ||
</EmptyStateFooter> | ||
</EmptyState> | ||
</PageSection> | ||
); | ||
|
||
export default ModelServingLoading; |
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