[DE mobile] Added navigation store
This commit is contained in:
parent
68a9a83041
commit
b5374af7ce
16
apps/documenteditor/mobile/src/store/navigation.js
Normal file
16
apps/documenteditor/mobile/src/store/navigation.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import {action, observable, makeObservable} from 'mobx';
|
||||
|
||||
export class storeNavigation {
|
||||
constructor() {
|
||||
makeObservable(this, {
|
||||
bookmarks: observable,
|
||||
initBookmarks: action
|
||||
});
|
||||
}
|
||||
|
||||
bookmarks = [];
|
||||
|
||||
initBookmarks(bookmarks) {
|
||||
this.bookmarks = bookmarks;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue