update
This commit is contained in:
21
frontend/src/stores/commonStore.ts
Normal file
21
frontend/src/stores/commonStore.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import {makeAutoObservable} from 'mobx';
|
||||
|
||||
export enum ModelStatus {
|
||||
Offline,
|
||||
Starting,
|
||||
Loading,
|
||||
Working,
|
||||
}
|
||||
|
||||
class CommonStore {
|
||||
constructor() {
|
||||
makeAutoObservable(this);
|
||||
}
|
||||
|
||||
modelStatus: ModelStatus = ModelStatus.Offline;
|
||||
updateModelStatus = (status: ModelStatus) => {
|
||||
this.modelStatus = status;
|
||||
};
|
||||
}
|
||||
|
||||
export default new CommonStore();
|
||||
Reference in New Issue
Block a user