Skip to content

Commit

Permalink
Bug Multiple instances of tabs under ODF dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Asir <tjeyasin@redhat.com>
  • Loading branch information
TimothyAsirJeyasing committed Mar 10, 2023
1 parent 5f204f5 commit 9508441
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 105 deletions.
14 changes: 0 additions & 14 deletions frontend/packages/ceph-storage-plugin/src/mock-models.ts

This file was deleted.

91 changes: 0 additions & 91 deletions frontend/packages/ceph-storage-plugin/src/plugin.ts
Expand Up @@ -16,7 +16,6 @@ import {
import { ClusterServiceVersionModel } from '@console/operator-lifecycle-manager/src/models';
import { referenceForModel } from '@console/internal/module/k8s';
import * as models from './models';
import * as mockModels from './mock-models';
import { getCephHealthState } from './components/dashboards/persistent-internal/status-card/utils';
import { isClusterExpandActivity } from './components/dashboards/persistent-internal/activity-card/cluster-expand-activity';
import { WatchCephResource } from './types';
Expand Down Expand Up @@ -409,96 +408,6 @@ const plugin: Plugin<ConsumedExtensions> = [
disallowed: [FEATURES.BLOCK_POOL],
},
},
// Adding this Extension because dynamic endpoint is not avbl
// Todo(bipuladh): Remove once SDK is mature enough to support list page
{
type: 'HorizontalNavTab',
properties: {
model: mockModels.StorageSystemMockModel,
page: {
name: '%ceph-storage-plugin~Storage Systems%',
href: 'systems',
},
loader: async () =>
(
await import(
'./components/odf-system/odf-system-list' /* webpackChunkName: "odf-system-list" */
)
).default,
},
flags: {
disallowed: [FEATURES.SS_LIST],
},
},
// Adding this Extension because dynamic endpoint is not avbl
// Todo(bipuladh): Remove once SDK is mature enough to support list page
{
type: 'HorizontalNavTab',
properties: {
model: mockModels.StorageSystemMockModel,
page: {
// t('ceph-storage-plugin~Backing Store')
name: '%ceph-storage-plugin~Backing Store%',
href: 'resource/noobaa.io~v1alpha1~BackingStore',
},
loader: async () =>
(
await import(
'./components/odf-resources/resource-list-page' /* webpackChunkName: "odf-system-list" */
)
).BackingStoreListPage,
},
flags: {
required: [MCG_FLAG],
disallowed: [FEATURES.MCG_RESOURCE],
},
},
// Adding this Extension because dynamic endpoint is not avbl
// Todo(bipuladh): Remove once SDK is mature enough to support list page
{
type: 'HorizontalNavTab',
properties: {
model: mockModels.StorageSystemMockModel,
page: {
// t('ceph-storage-plugin~Bucket Class')
name: '%ceph-storage-plugin~Bucket Class%',
href: 'resource/noobaa.io~v1alpha1~BucketClass',
},
loader: async () =>
(
await import(
'./components/odf-resources/resource-list-page' /* webpackChunkName: "odf-system-list" */
)
).BucketClassListPage,
},
flags: {
required: [MCG_FLAG],
disallowed: [FEATURES.MCG_RESOURCE],
},
},
// Adding this Extension because dynamic endpoint is not avbl
// Todo(bipuladh): Remove once SDK is mature enough to support list page
{
type: 'HorizontalNavTab',
properties: {
model: mockModels.StorageSystemMockModel,
page: {
// t('ceph-storage-plugin~Namespace Store')
name: '%ceph-storage-plugin~Namespace Store%',
href: 'resource/noobaa.io~v1alpha1~NamespaceStore',
},
loader: async () =>
(
await import(
'./components/odf-resources/resource-list-page' /* webpackChunkName: "odf-system-list" */
)
).NamespaceStoreListPage,
},
flags: {
required: [MCG_FLAG],
disallowed: [FEATURES.MCG_RESOURCE],
},
},
];

export default plugin;

0 comments on commit 9508441

Please sign in to comment.