mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
27 lines
909 B
TypeScript
27 lines
909 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import setupSyncingOfGeneralCatalogEntitiesInjectable from "./setup-syncing-of-general-catalog-entities.injectable";
|
|
import { onLoadOfApplicationInjectionToken } from "../runnable-tokens/on-load-of-application-injection-token";
|
|
import hotbarStoreInjectable from "../../../common/hotbars/store.injectable";
|
|
|
|
const setupHotbarStoreInjectable = getInjectable({
|
|
id: "setup-hotbar-store",
|
|
|
|
instantiate: (di) => ({
|
|
run: () => {
|
|
const hotbarStore = di.inject(hotbarStoreInjectable);
|
|
|
|
hotbarStore.load();
|
|
},
|
|
|
|
runAfter: di.inject(setupSyncingOfGeneralCatalogEntitiesInjectable),
|
|
}),
|
|
|
|
injectionToken: onLoadOfApplicationInjectionToken,
|
|
});
|
|
|
|
export default setupHotbarStoreInjectable;
|