web-apps/apps/documenteditor/mobile/src/store/review.js

24 lines
527 B
JavaScript
Raw Normal View History

import {action, observable, makeObservable} from 'mobx';
2021-02-11 23:34:01 +00:00
export class storeReview {
constructor() {
makeObservable(this, {
displayMode: observable,
dataChanges: observable,
changeDisplayMode: action,
changeArrReview: action
});
}
displayMode = 'markup';
2021-02-11 23:34:01 +00:00
changeDisplayMode (mode) {
2021-02-11 23:34:01 +00:00
this.displayMode = mode;
}
dataChanges = [];
2021-02-11 23:34:01 +00:00
changeArrReview (data) {
2021-02-11 23:34:01 +00:00
this.dataChanges = data && data.length > 0 ? data : [];
}
}