Merge pull request #1757 from ONLYOFFICE/fix/bugfix
[DE] Hide "Create new" for offline pdf/djvu/xps files
This commit is contained in:
commit
8ad9c0296b
|
@ -1423,6 +1423,7 @@ define([
|
||||||
this.appOptions.canCoAuthoring = !this.appOptions.isLightVersion;
|
this.appOptions.canCoAuthoring = !this.appOptions.isLightVersion;
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
this.appOptions.isOffline = this.api.asc_isOffline();
|
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.isCrypted = this.api.asc_isCrypto();
|
||||||
this.appOptions.isReviewOnly = this.permissions.review === true && this.permissions.edit === false;
|
this.appOptions.isReviewOnly = this.permissions.review === true && this.permissions.edit === false;
|
||||||
this.appOptions.canRequestEditRights = this.editorConfig.canRequestEditRights;
|
this.appOptions.canRequestEditRights = this.editorConfig.canRequestEditRights;
|
||||||
|
|
Loading…
Reference in a new issue