web-apps/apps/common/mobile/lib/store/review.js

24 lines
550 B
JavaScript
Raw Normal View History

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