Add "autostart" parameter to plugins config: auto start array of plugins.
This commit is contained in:
parent
8709548c7a
commit
cc0933be99
|
@ -120,7 +120,7 @@
|
|||
showReviewChanges: false
|
||||
},
|
||||
plugins: {
|
||||
autoStartGuid: 'asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}',
|
||||
autostart: ['asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}'],
|
||||
url: '../../../../sdkjs-plugins/',
|
||||
pluginsData: [
|
||||
"helloworld/config.json",
|
||||
|
|
|
@ -1898,6 +1898,7 @@ define([
|
|||
if (arr.length>0)
|
||||
this.updatePluginsList({
|
||||
autoStartGuid: plugins.autoStartGuid,
|
||||
autostart: plugins.autostart,
|
||||
pluginsData: arr
|
||||
}, !!uiCustomize);
|
||||
},
|
||||
|
@ -1961,8 +1962,12 @@ define([
|
|||
}
|
||||
if (this.appOptions.canPlugins) {
|
||||
this.getApplication().getController('Common.Controllers.Plugins').setMode(this.appOptions);
|
||||
if (plugins.autoStartGuid)
|
||||
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) {
|
||||
// run array of plugins
|
||||
}
|
||||
}
|
||||
if (!uiCustomize) this.getApplication().getController('LeftMenu').enablePlugins();
|
||||
},
|
||||
|
|
|
@ -1667,6 +1667,7 @@ define([
|
|||
if (arr.length>0)
|
||||
this.updatePluginsList({
|
||||
autoStartGuid: plugins.autoStartGuid,
|
||||
autostart: plugins.autostart,
|
||||
pluginsData: arr
|
||||
}, !!uiCustomize);
|
||||
},
|
||||
|
@ -1733,8 +1734,12 @@ define([
|
|||
}
|
||||
if (this.appOptions.canPlugins) {
|
||||
this.getApplication().getController('Common.Controllers.Plugins').setMode(this.appOptions);
|
||||
if (plugins.autoStartGuid)
|
||||
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) {
|
||||
// run array of plugins
|
||||
}
|
||||
}
|
||||
if (!uiCustomize) this.getApplication().getController('LeftMenu').enablePlugins();
|
||||
},
|
||||
|
|
|
@ -1862,6 +1862,7 @@ define([
|
|||
if (arr.length>0)
|
||||
this.updatePluginsList({
|
||||
autoStartGuid: plugins.autoStartGuid,
|
||||
autostart: plugins.autostart,
|
||||
pluginsData: arr
|
||||
}, !!uiCustomize);
|
||||
},
|
||||
|
@ -1927,8 +1928,12 @@ define([
|
|||
}
|
||||
if (this.appOptions.canPlugins) {
|
||||
this.getApplication().getController('Common.Controllers.Plugins').setMode(this.appOptions);
|
||||
if (plugins.autoStartGuid)
|
||||
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) {
|
||||
// run array of plugins
|
||||
}
|
||||
}
|
||||
if (!uiCustomize) this.getApplication().getController('LeftMenu').enablePlugins();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue