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
@@ -49,6 +49,8 @@ const extensionSidebarItemRegistratorInjectable = getInjectable({
|
||||
? `${extension.sanitizedExtensionId}-${registration.parentId}`
|
||||
: null,
|
||||
|
||||
...(registration.visible ? { isVisible: registration.visible } : {}),
|
||||
|
||||
title: registration.title,
|
||||
getIcon: registration.components.Icon
|
||||
? () => <registration.components.Icon />
|
||||
|
||||
Reference in new issue
Block a user