mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add support for specifying orderNumber for ClusterPageMenus (#7166)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
c94dce2c29
commit
2959e01d1e
4 files changed
+627
-7
No files matched your search
@@ -15,6 +15,7 @@ export interface ClusterPageMenuRegistration {
|
||||
title: React.ReactNode;
|
||||
components: ClusterPageMenuComponents;
|
||||
visible?: IComputedValue<boolean>;
|
||||
orderNumber?: number;
|
||||
}
|
||||
|
||||
export interface ClusterPageMenuComponents {
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ const extensionSidebarItemRegistratorInjectable = getInjectable({
|
||||
|
||||
const res: SidebarItemRegistration = {
|
||||
id: `${extension.sanitizedExtensionId}-${registration.id}`,
|
||||
orderNumber: 9999,
|
||||
orderNumber: registration.orderNumber ?? 9999,
|
||||
|
||||
parentId: registration.parentId
|
||||
? `${extension.sanitizedExtensionId}-${registration.parentId}`
|
||||
|
||||
Reference in new issue
Block a user