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