mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Roman <ixrock@gmail.com> Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
24 lines
680 B
TypeScript
24 lines
680 B
TypeScript
import { LensMainExtension, Registry, windowManager } from "@k8slens/extensions";
|
|
import { supportPageURL } from "./src/support.route";
|
|
|
|
export default class SupportPageMainExtension extends LensMainExtension {
|
|
async onActivate() {
|
|
console.log("support page extension activated")
|
|
}
|
|
|
|
async registerAppMenus(registry: Registry.MenuRegistry) {
|
|
this.disposers.push(
|
|
registry.add({
|
|
parentId: "help",
|
|
label: "Support",
|
|
click() {
|
|
windowManager.navigate({
|
|
channel: "menu:navigate", // fixme: use windowManager.ensureMainWindow from Tray's PR
|
|
url: supportPageURL(),
|
|
});
|
|
}
|
|
})
|
|
)
|
|
}
|
|
}
|