Merge pull request #1757 from ONLYOFFICE/fix/bugfix

[DE] Hide "Create new" for offline pdf/djvu/xps files
This commit is contained in:
Julia Radzhabova 2022-05-24 19:29:03 +03:00 committed by GitHub
commit 8ad9c0296b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1423,6 +1423,7 @@ define([
this.appOptions.canCoAuthoring = !this.appOptions.isLightVersion;
/** coauthoring end **/
this.appOptions.isOffline = this.api.asc_isOffline();
this.appOptions.canCreateNew = this.appOptions.canCreateNew && !(this.appOptions.isOffline && isPDFViewer);
this.appOptions.isCrypted = this.api.asc_isCrypto();
this.appOptions.isReviewOnly = this.permissions.review === true && this.permissions.edit === false;
this.appOptions.canRequestEditRights = this.editorConfig.canRequestEditRights;