Add support system plugins to web

This commit is contained in:
Oleg Korshul 2019-01-17 14:01:35 +03:00
parent cf683f829d
commit 51bd550fc1
5 changed files with 5 additions and 3 deletions

View file

@ -156,6 +156,7 @@ define([
variation.set_Icons(itemVar.get('icons'));
variation.set_Visual(itemVar.get('isVisual'));
variation.set_CustomWindow(itemVar.get('isCustomWindow'));
variation.set_System(itemVar.get('isSystem'));
variation.set_Viewer(itemVar.get('isViewer'));
variation.set_EditorsSupport(itemVar.get('EditorsSupport'));
variation.set_Modal(itemVar.get('isModal'));

View file

@ -55,6 +55,7 @@ define([
url: "",
index: 0,
icons: undefined,
isSystem: false,
isViewer: false,
isDisplayedInViewer: true,
EditorsSupport: ["word", "cell", "slide"],

View file

@ -2099,7 +2099,7 @@ define([
var variationsArr = [],
pluginVisible = false;
item.variations.forEach(function(itemVar){
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'word');
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'word') && !itemVar.isSystem;
if ( visible ) pluginVisible = true;
if (item.isUICustomizer ) {

View file

@ -1845,7 +1845,7 @@ define([
var variationsArr = [],
pluginVisible = false;
item.variations.forEach(function(itemVar){
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'slide');
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'slide') && !itemVar.isSystem;
if ( visible ) pluginVisible = true;
if ( item.isUICustomizer ) {

View file

@ -2042,7 +2042,7 @@ define([
var variationsArr = [],
pluginVisible = false;
item.variations.forEach(function(itemVar){
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'cell');
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'cell') && !itemVar.isSystem;
if ( visible ) pluginVisible = true;
if ( item.isUICustomizer ) {