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