[DE] Hide "Create new" for offline pdf/djvu/xps files
This commit is contained in:
parent
6a0509e1ea
commit
9281c8aec0
|
@ -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