mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
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;
|
||||
Reference in new issue
Block a user