fix: Custom Resource Definitions should be the first entry in the side bar

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and Gabriel Accettola committed 2023-05-23 10:46:02 +02:00
1 parent 58426370de
commit a8ff6ce095
2 files changed
+3 -3

No files matched your search

@@ -38,7 +38,7 @@ const customResourceDefinitionGroupsSidebarItemsComputedInjectable = getInjectab
parentId: customResourcesSidebarItemInjectable.id,
onClick: noop,
title: group.replaceAll(".", "\u200b."), // Replace dots with zero-width spaces to allow line breaks
orderNumber: 10 * index,
orderNumber: index + 1,
}),
injectionToken: sidebarItemInjectionToken,
});
@@ -62,7 +62,7 @@ const customResourceDefinitionGroupsSidebarItemsComputedInjectable = getInjectab
group: definition.getGroup(),
apiName: definition.getPluralName(),
}),
orderNumber: 10 * index,
orderNumber: index,
}),
injectionToken: sidebarItemInjectionToken,
});
@@ -20,7 +20,7 @@ const customResourceDefinitionsSidebarItemInjectable = getInjectable({
onClick: di.inject(navigateToCustomResourcesInjectable),
isActive: di.inject(routeIsActiveInjectable, customResourceDefinitionsRoute),
isVisible: customResourceDefinitionsRoute.isEnabled,
orderNumber: 10,
orderNumber: 0,
};
},
injectionToken: sidebarItemInjectionToken,