Skip to content

Commit

Permalink
Archive and restore registered models
Browse files Browse the repository at this point in the history
  • Loading branch information
manaswinidas committed May 29, 2024
1 parent b11cb1f commit adca129
Showing 1 changed file with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
import * as React from 'react';
import {
EmptyState,
EmptyStateBody,
EmptyStateHeader,
EmptyStateIcon,
EmptyStateVariant,
SearchInput,
ToolbarContent,
ToolbarFilter,
ToolbarGroup,
ToolbarItem,
ToolbarToggleGroup,
} from '@patternfly/react-core';
import { FilterIcon, PlusCircleIcon } from '@patternfly/react-icons';
import { FilterIcon } from '@patternfly/react-icons';
import { SearchType } from '~/concepts/dashboard/DashboardSearchField';
import { RegisteredModel } from '~/concepts/modelRegistry/types';
import SimpleDropdownSelect from '~/components/SimpleDropdownSelect';
import { filterRegisteredModels } from '~/pages/modelRegistry/screens/utils';
import EmptyModelRegistryState from '~/pages/modelRegistry/screens/EmptyModelRegistryState';
import RegisteredModelsArchiveTable from './RegisteredModelsArchiveTable';

type RegisteredModelsArchiveListViewProps = {
Expand All @@ -41,16 +37,12 @@ const RegisteredModelsArchiveListView: React.FC<RegisteredModelsArchiveListViewP

if (unfilteredregisteredModels.length === 0) {
return (
<EmptyState variant={EmptyStateVariant.sm} data-testid="empty-archive-state">
<EmptyStateHeader
titleText="No archived models"
icon={<EmptyStateIcon icon={PlusCircleIcon} />}
/>
<EmptyStateBody>
You can archive the active models that you no longer use. You can restore an archived
model to make it active.
</EmptyStateBody>
</EmptyState>
<EmptyModelRegistryState
testid="empty-archive-model-state"
title="No archived models"
description="You can archive the active models that you no longer use. You can restore an archived
model to make it active."
/>
);
}

Expand Down

0 comments on commit adca129

Please sign in to comment.