Add URL display to weblink URLs (#4046)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-10-18 09:38:10 -04:00
1 parent 86da6260b6
commit f12b0658ba
2 files changed
+21 -4

No files matched your search

+5 -2
View File
@@ -35,8 +35,11 @@ export type WebLinkSpec = {
};
export class WebLink extends CatalogEntity<CatalogEntityMetadata, WebLinkStatus, WebLinkSpec> {
public readonly apiVersion = "entity.k8slens.dev/v1alpha1";
public readonly kind = "WebLink";
public static readonly apiVersion = "entity.k8slens.dev/v1alpha1";
public static readonly kind = "WebLink";
public readonly apiVersion = WebLink.apiVersion;
public readonly kind = WebLink.kind;
async onRun() {
window.open(this.spec.url, "_blank");