mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Made welcome page configurable (#6232)
Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
2555643749
commit
a2d52fa6b8
11 files changed
+211
-23
No files matched your search
@@ -4,16 +4,21 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import welcomeRouteConfigInjectable from "./welcome-route-config.injectable";
|
||||
import { frontEndRouteInjectionToken } from "../../front-end-route-injection-token";
|
||||
|
||||
const welcomeRouteInjectable = getInjectable({
|
||||
id: "welcome-route",
|
||||
|
||||
instantiate: () => ({
|
||||
path: "/welcome",
|
||||
clusterFrame: false,
|
||||
isEnabled: computed(() => true),
|
||||
}),
|
||||
instantiate: (di) => {
|
||||
const welcomeRoute = di.inject(welcomeRouteConfigInjectable);
|
||||
|
||||
return {
|
||||
path: welcomeRoute,
|
||||
clusterFrame: false,
|
||||
isEnabled: computed(() => true),
|
||||
};
|
||||
},
|
||||
|
||||
injectionToken: frontEndRouteInjectionToken,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user