mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Revert "chore: Cleanup custom resource route definition"
This reverts commit f65e5672b5.
This commit is contained in:
parent
d3cf7088d6
commit
40f1180579
@ -8,15 +8,15 @@ import type { Route } from "../../../front-end-route-injection-token";
|
|||||||
import { frontEndRouteInjectionToken } from "../../../front-end-route-injection-token";
|
import { frontEndRouteInjectionToken } from "../../../front-end-route-injection-token";
|
||||||
|
|
||||||
export interface CustomResourcesPathParameters {
|
export interface CustomResourcesPathParameters {
|
||||||
group: string;
|
group?: string;
|
||||||
name: string;
|
name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const customResourcesRouteInjectable = getInjectable({
|
const customResourcesRouteInjectable = getInjectable({
|
||||||
id: "custom-resources-route",
|
id: "custom-resources-route",
|
||||||
|
|
||||||
instantiate: (): Route<CustomResourcesPathParameters> => ({
|
instantiate: (): Route<CustomResourcesPathParameters> => ({
|
||||||
path: "/crd/:group/:name",
|
path: "/crd/:group?/:name?",
|
||||||
clusterFrame: true,
|
clusterFrame: true,
|
||||||
isEnabled: computed(() => true),
|
isEnabled: computed(() => true),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user