mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Revert "fix: Custom Resource Definitions should be the first entry in the side bar"
This reverts commit a8ff6ce095.
This commit is contained in:
parent
1ab67e795c
commit
17d9af1da9
@ -38,7 +38,7 @@ const customResourceDefinitionGroupsSidebarItemsComputedInjectable = getInjectab
|
|||||||
parentId: customResourcesSidebarItemInjectable.id,
|
parentId: customResourcesSidebarItemInjectable.id,
|
||||||
onClick: noop,
|
onClick: noop,
|
||||||
title: group.replaceAll(".", "\u200b."), // Replace dots with zero-width spaces to allow line breaks
|
title: group.replaceAll(".", "\u200b."), // Replace dots with zero-width spaces to allow line breaks
|
||||||
orderNumber: index + 1,
|
orderNumber: 10 * index,
|
||||||
}),
|
}),
|
||||||
injectionToken: sidebarItemInjectionToken,
|
injectionToken: sidebarItemInjectionToken,
|
||||||
});
|
});
|
||||||
@ -62,7 +62,7 @@ const customResourceDefinitionGroupsSidebarItemsComputedInjectable = getInjectab
|
|||||||
group: definition.getGroup(),
|
group: definition.getGroup(),
|
||||||
apiName: definition.getPluralName(),
|
apiName: definition.getPluralName(),
|
||||||
}),
|
}),
|
||||||
orderNumber: index,
|
orderNumber: 10 * index,
|
||||||
}),
|
}),
|
||||||
injectionToken: sidebarItemInjectionToken,
|
injectionToken: sidebarItemInjectionToken,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -20,7 +20,7 @@ const customResourceDefinitionsSidebarItemInjectable = getInjectable({
|
|||||||
onClick: di.inject(navigateToCustomResourcesInjectable),
|
onClick: di.inject(navigateToCustomResourcesInjectable),
|
||||||
isActive: di.inject(routeIsActiveInjectable, customResourceDefinitionsRoute),
|
isActive: di.inject(routeIsActiveInjectable, customResourceDefinitionsRoute),
|
||||||
isVisible: customResourceDefinitionsRoute.isEnabled,
|
isVisible: customResourceDefinitionsRoute.isEnabled,
|
||||||
orderNumber: 0,
|
orderNumber: 10,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
injectionToken: sidebarItemInjectionToken,
|
injectionToken: sidebarItemInjectionToken,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user