mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Introduce appUpdateWarningLevelInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
c2c9c93b54
commit
9acc2c9f9c
@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
* 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 { computed } from "mobx";
|
||||||
|
import appUpdateWarningInjectable from "./app-update-warning.injectable";
|
||||||
|
|
||||||
|
const appUpdateWarningLevelInjectable = getInjectable({
|
||||||
|
id: "app-update-warning-level",
|
||||||
|
|
||||||
|
instantiate: (di) => {
|
||||||
|
const store = di.inject(appUpdateWarningInjectable);
|
||||||
|
|
||||||
|
return computed(() => store.warningLevel);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
export default appUpdateWarningLevelInjectable;
|
||||||
Loading…
Reference in New Issue
Block a user