mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Simplify code
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
c550964d16
commit
95246aa1dd
@ -3,7 +3,6 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import { computed } from "mobx";
|
|
||||||
import getTrayIconPathInjectable from "../../tray/menu-icon/get-tray-icon-path.injectable";
|
import getTrayIconPathInjectable from "../../tray/menu-icon/get-tray-icon-path.injectable";
|
||||||
import { trayIconInjectionToken } from "../../tray/menu-icon/tray-icon-injection-token";
|
import { trayIconInjectionToken } from "../../tray/menu-icon/tray-icon-injection-token";
|
||||||
import updateIsReadyToBeInstalledInjectable from "../update-is-ready-to-be-installed.injectable";
|
import updateIsReadyToBeInstalledInjectable from "../update-is-ready-to-be-installed.injectable";
|
||||||
@ -18,7 +17,7 @@ const updateIsReadyToBeInstalledTrayIconInjectable = getInjectable({
|
|||||||
return {
|
return {
|
||||||
iconPath: getTrayIconPath("update-available"),
|
iconPath: getTrayIconPath("update-available"),
|
||||||
priority: 1,
|
priority: 1,
|
||||||
shouldBeShown: computed(() => updateIsReadyToBeInstalled.get()),
|
shouldBeShown: updateIsReadyToBeInstalled,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user