[all] added flag to use RTL in code

This commit is contained in:
Maxim Kadushkin 2022-08-22 14:24:38 +03:00
parent 684a9668bf
commit 7146701873
3 changed files with 3 additions and 0 deletions

View file

@ -416,6 +416,7 @@ define([
this.appOptions.canFeatureComparison = true;
this.appOptions.canFeatureContentControl = true;
this.appOptions.canFeatureForms = !!this.api.asc_isSupportFeature("forms");
this.appOptions.uiRtl = Common.localStorage.getBool("ui-rtl");
this.appOptions.mentionShare = !((typeof (this.appOptions.customization) == 'object') && (this.appOptions.customization.mentionShare==false));

View file

@ -369,6 +369,7 @@ define([
this.appOptions.compatibleFeatures = (typeof (this.appOptions.customization) == 'object') && !!this.appOptions.customization.compatibleFeatures;
this.appOptions.canRequestSharingSettings = this.editorConfig.canRequestSharingSettings;
this.appOptions.mentionShare = !((typeof (this.appOptions.customization) == 'object') && (this.appOptions.customization.mentionShare==false));
this.appOptions.uiRtl = Common.localStorage.getBool("ui-rtl");
this.appOptions.user.guest && this.appOptions.canRenameAnonymous && Common.NotificationCenter.on('user:rename', _.bind(this.showRenameUserDialog, this));

View file

@ -415,6 +415,7 @@ define([
this.appOptions.canMakeActionLink = this.editorConfig.canMakeActionLink;
this.appOptions.canFeaturePivot = true;
this.appOptions.canFeatureViews = true;
this.appOptions.uiRtl = Common.localStorage.getBool("ui-rtl");
if (this.appOptions.user.guest && this.appOptions.canRenameAnonymous && !this.appOptions.isEditDiagram && !this.appOptions.isEditMailMerge && !this.appOptions.isEditOle)
Common.NotificationCenter.on('user:rename', _.bind(this.showRenameUserDialog, this));