Replace WorkloadsOverviewDetailRegistry with reactive solution (#4817)

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen authored and GitHub committed 2022-03-04 10:04:38 +02:00
1 parent 8dbc0b82f8
commit 125a47a56d
11 files changed
+92 -74

No files matched your search

-1
View File
@@ -9,5 +9,4 @@ export * from "./entity-settings-registry";
export * from "./ipc";
export * from "./kube-object-detail-registry";
export * from "./registries";
export * from "./workloads-overview-detail-registry";
export * from "./catalog-category-registry";
-1
View File
@@ -12,5 +12,4 @@ export function initRegistries() {
registries.EntitySettingRegistry.createInstance();
registries.GlobalPageRegistry.createInstance();
registries.KubeObjectDetailRegistry.createInstance();
registries.WorkloadsOverviewDetailRegistry.createInstance();
}
@@ -1,25 +0,0 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { WorkloadsOverviewDetailRegistry } from "../../extensions/registries";
import { OverviewStatuses } from "../components/+workloads-overview/overview-statuses";
import { WorkloadEvents } from "./workload-events";
export function initWorkloadsOverviewDetailRegistry() {
WorkloadsOverviewDetailRegistry.getInstance()
.add([
{
components: {
Details: OverviewStatuses,
},
},
{
priority: 5,
components: {
Details: WorkloadEvents,
},
},
]);
}