Debug autostart plugins.

This commit is contained in:
Julia Radzhabova 2017-09-13 14:35:20 +03:00
parent 6e4ec9e92d
commit a147880f22
3 changed files with 27 additions and 21 deletions

View file

@ -1898,12 +1898,17 @@ define([
}
});
if (arr.length>0)
if (arr.length>0) {
var autostart = plugins.autostart || plugins.autoStartGuid;
if (typeof (autostart) == 'string')
autostart = [autostart];
plugins.autoStartGuid && console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
this.updatePluginsList({
autoStartGuid: plugins.autoStartGuid,
autostart: plugins.autostart,
autostart: autostart,
pluginsData: arr
}, !!uiCustomize);
}
},
updatePluginsList: function(plugins, uiCustomize) {
@ -1965,10 +1970,7 @@ define([
}
if (this.appOptions.canPlugins) {
this.getApplication().getController('Common.Controllers.Plugins').setMode(this.appOptions);
if (plugins.autoStartGuid) {
console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
this.api.asc_pluginRun(plugins.autoStartGuid, 0, '');
} else if (plugins.autostart && plugins.autostart.length>0) {
if (plugins.autostart && plugins.autostart.length>0) {
// run array of plugins
this.api.asc_pluginRun(plugins.autostart[0], 0, '');
}

View file

@ -1670,12 +1670,17 @@ define([
}
});
if (arr.length>0)
if (arr.length>0) {
var autostart = plugins.autostart || plugins.autoStartGuid;
if (typeof (autostart) == 'string')
autostart = [autostart];
plugins.autoStartGuid && console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
this.updatePluginsList({
autoStartGuid: plugins.autoStartGuid,
autostart: plugins.autostart,
autostart: autostart,
pluginsData: arr
}, !!uiCustomize);
}
},
updatePluginsList: function(plugins, uiCustomize) {
@ -1740,10 +1745,7 @@ define([
}
if (this.appOptions.canPlugins) {
this.getApplication().getController('Common.Controllers.Plugins').setMode(this.appOptions);
if (plugins.autoStartGuid) {
console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
this.api.asc_pluginRun(plugins.autoStartGuid, 0, '');
} else if (plugins.autostart && plugins.autostart.length>0) {
if (plugins.autostart && plugins.autostart.length>0) {
// run array of plugins
this.api.asc_pluginRun(plugins.autostart[0], 0, '');
}

View file

@ -1850,12 +1850,17 @@ define([
}
});
if (arr.length>0)
if (arr.length>0) {
var autostart = plugins.autostart || plugins.autoStartGuid;
if (typeof (autostart) == 'string')
autostart = [autostart];
plugins.autoStartGuid && console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
this.updatePluginsList({
autoStartGuid: plugins.autoStartGuid,
autostart: plugins.autostart,
autostart: autostart,
pluginsData: arr
}, !!uiCustomize);
}
},
updatePluginsList: function(plugins, uiCustomize) {
@ -1919,10 +1924,7 @@ define([
}
if (this.appOptions.canPlugins) {
this.getApplication().getController('Common.Controllers.Plugins').setMode(this.appOptions);
if (plugins.autoStartGuid) {
console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
this.api.asc_pluginRun(plugins.autoStartGuid, 0, '');
} else if (plugins.autostart && plugins.autostart.length>0) {
if (plugins.autostart && plugins.autostart.length>0) {
// run array of plugins
this.api.asc_pluginRun(plugins.autostart[0], 0, '');
}