mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Expose a way to reactively control visibility of preference tabs and tray menu items through Extension API (#5789)
This commit is contained in:
1 parent
544bbdc952
commit
eb6cc70143
30 files changed
+1295
-194
No files matched your search
@@ -7,6 +7,7 @@
|
||||
import type { IconProps } from "../../renderer/components/icon";
|
||||
import type React from "react";
|
||||
import type { PageTarget } from "./page-registry";
|
||||
import type { IComputedValue } from "mobx";
|
||||
|
||||
export interface ClusterPageMenuRegistration {
|
||||
id?: string;
|
||||
@@ -14,6 +15,7 @@ export interface ClusterPageMenuRegistration {
|
||||
target?: PageTarget;
|
||||
title: React.ReactNode;
|
||||
components: ClusterPageMenuComponents;
|
||||
visible?: IComputedValue<boolean>;
|
||||
}
|
||||
|
||||
export interface ClusterPageMenuComponents {
|
||||
|
||||
Reference in new issue
Block a user