mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
Add onUserActionRequired event
This commit is contained in:
@ -33,7 +33,8 @@ class MainController extends Component {
|
||||
|
||||
this._state = {
|
||||
licenseType: false,
|
||||
isDocModified: false
|
||||
isDocModified: false,
|
||||
requireUserAction: true
|
||||
};
|
||||
|
||||
this.defaultTitleText = __APP_TITLE_TEXT__;
|
||||
@ -391,6 +392,7 @@ class MainController extends Component {
|
||||
Common.Notifications.trigger('document:ready');
|
||||
|
||||
appOptions.changeDocReady(true);
|
||||
this._state.requireUserAction = false;
|
||||
}
|
||||
|
||||
onLicenseChanged (params) {
|
||||
@ -610,6 +612,10 @@ class MainController extends Component {
|
||||
}).open();
|
||||
this.isDRM = true;
|
||||
}
|
||||
if (this._state.requireUserAction) {
|
||||
Common.Gateway.userActionRequired();
|
||||
this._state.requireUserAction = false;
|
||||
}
|
||||
}
|
||||
|
||||
onDocumentName () {
|
||||
|
||||
Reference in New Issue
Block a user