Expand scope of behaviour for updating using tray also contain checking for updates

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne SavolainenandMikko Aspiala committed 2022-05-20 14:08:34 +03:00
1 parent 35d6b54ed4
commit 4b2aaa8923
14 files changed
+823 -184

No files matched your search

@@ -0,0 +1,24 @@
/**
* 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 { action, computed, observable } from "mobx";
const progressOfUpdateDownloadInjectable = getInjectable({
id: "progress-of-update-download",
instantiate: () => {
const state = observable.box(0);
return {
value: computed(() => state.get()),
setValue: action((percentage: number) => {
state.set(percentage);
}),
};
},
});
export default progressOfUpdateDownloadInjectable;