1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-04-08 15:25:55 +03:00
parent 491aa173ae
commit 43e3e326e6

View File

@ -25,7 +25,7 @@ export class WebLink implements CatalogEntity {
return this.metadata.name;
}
async onRun(context: CatalogEntityActionContext) {
async onRun() {
window.open(this.spec.url, "_blank");
}
@ -33,7 +33,7 @@ export class WebLink implements CatalogEntity {
//
}
async onContextMenuOpen(context: CatalogEntityContextMenuContext) {
async onContextMenuOpen() {
//
}
}
@ -42,7 +42,7 @@ export class WebLinkCategory implements CatalogCategory {
public readonly apiVersion = "catalog.k8slens.dev/v1alpha1";
public readonly kind = "CatalogCategory";
public metadata = {
name: "Web Link"
name: "Web Links"
};
public spec = {
group: "entity.k8slens.dev",