diff --git a/src/common/cluster-store.ts b/src/common/cluster-store.ts index b936bc2fc7..d340933d5a 100644 --- a/src/common/cluster-store.ts +++ b/src/common/cluster-store.ts @@ -228,22 +228,6 @@ export class ClusterStore extends BaseStore { } } - @action - swapIconOrders(from: number, to: number) { - const clusters = this.enabledClustersList; - - if (from < 0 || to < 0 || from >= clusters.length || to >= clusters.length || isNaN(from) || isNaN(to)) { - throw new Error(`invalid from<->to arguments`); - } - - move.mutate(clusters, from, to); - - for (const i in clusters) { - // This resets the iconOrder to the current display order - clusters[i].preferences.iconOrder = +i; - } - } - hasClusters() { return this.clusters.size > 0; } diff --git a/src/extensions/cluster-feature.ts b/src/extensions/cluster-feature.ts index 2bcdcc6c03..ad3a258b0e 100644 --- a/src/extensions/cluster-feature.ts +++ b/src/extensions/cluster-feature.ts @@ -45,7 +45,7 @@ export abstract class ClusterFeature { * * @param cluster the cluster that the feature is to be installed on */ - abstract async install(cluster: KubernetesCluster): Promise; + abstract install(cluster: KubernetesCluster): Promise; /** * to be implemented in the derived class, this method is typically called by Lens when a user has indicated that this feature is to be upgraded. The implementation @@ -53,7 +53,7 @@ export abstract class ClusterFeature { * * @param cluster the cluster that the feature is to be upgraded on */ - abstract async upgrade(cluster: KubernetesCluster): Promise; + abstract upgrade(cluster: KubernetesCluster): Promise; /** * to be implemented in the derived class, this method is typically called by Lens when a user has indicated that this feature is to be uninstalled. The implementation @@ -61,7 +61,7 @@ export abstract class ClusterFeature { * * @param cluster the cluster that the feature is to be uninstalled from */ - abstract async uninstall(cluster: KubernetesCluster): Promise; + abstract uninstall(cluster: KubernetesCluster): Promise; /** * to be implemented in the derived class, this method is called periodically by Lens to determine details about the feature's current status. The implementation @@ -73,7 +73,7 @@ export abstract class ClusterFeature { * * @return a promise, resolved with the updated ClusterFeatureStatus */ - abstract async updateStatus(cluster: KubernetesCluster): Promise; + abstract updateStatus(cluster: KubernetesCluster): Promise; /** * this is a helper method that conveniently applies kubernetes resources to the cluster. diff --git a/src/extensions/lens-main-extension.ts b/src/extensions/lens-main-extension.ts index 12519ed656..1cfd3105b0 100644 --- a/src/extensions/lens-main-extension.ts +++ b/src/extensions/lens-main-extension.ts @@ -23,7 +23,7 @@ export class LensMainExtension extends LensExtension { catalogEntityRegistry.addSource(`${this.name}:${id}`, source); } - removeCatalogSorce(id: string) { + removeCatalogSource(id: string) { catalogEntityRegistry.removeSource(`${this.name}:${id}`); } } diff --git a/src/renderer/components/+catalog/catalog.scss b/src/renderer/components/+catalog/catalog.scss index b5b917ea97..a5bcc985b7 100644 --- a/src/renderer/components/+catalog/catalog.scss +++ b/src/renderer/components/+catalog/catalog.scss @@ -1,4 +1,4 @@ -.LandingPage { +.CatalogPage { --width: 100%; --height: 100%; diff --git a/src/renderer/components/+catalog/catalog.tsx b/src/renderer/components/+catalog/catalog.tsx index c0c8d1f462..540379fe36 100644 --- a/src/renderer/components/+catalog/catalog.tsx +++ b/src/renderer/components/+catalog/catalog.tsx @@ -39,7 +39,7 @@ export class Catalog extends React.Component { if (this.catalogEntityStore.items.length === 0) { Notifications.info(<>Welcome!

Get started by associating one or more clusters to Lens

, { timeout: 30_000, - id: "landing-welcome" + id: "catalog-welcome" }); } } @@ -99,7 +99,7 @@ export class Catalog extends React.Component { } return ( - +