[DE mobile] Added store for link settings
This commit is contained in:
parent
662ee6d9a5
commit
2a0016e776
16
apps/documenteditor/mobile/src/store/linkSettings.js
Normal file
16
apps/documenteditor/mobile/src/store/linkSettings.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import {action, observable, makeObservable} from 'mobx';
|
||||
|
||||
export class storeLinkSettings {
|
||||
constructor() {
|
||||
makeObservable(this, {
|
||||
canAddLink: observable,
|
||||
canAddHyperlink: action
|
||||
});
|
||||
}
|
||||
|
||||
canAddLink;
|
||||
|
||||
canAddHyperlink (value) {
|
||||
this.canAddLink = value;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue