diff --git a/src/atlasViewer/atlasViewer.dataService.service.ts b/src/atlasViewer/atlasViewer.dataService.service.ts index 34362e294027ba1555c12534e1595ea47871af35..07f5a9e2fd936901ee56b30b45d7f93a43830e47 100644 --- a/src/atlasViewer/atlasViewer.dataService.service.ts +++ b/src/atlasViewer/atlasViewer.dataService.service.ts @@ -13,6 +13,9 @@ export class AtlasViewerDataService implements OnDestroy{ private subscriptions : Subscription[] = [] + /** + * TODO ensure + */ public promiseFetchedPluginManifests : Promise<PluginManifest[]> = new Promise((resolve,reject)=>{ Promise.all([ PLUGINDEV @@ -25,7 +28,7 @@ export class AtlasViewerDataService implements OnDestroy{ ) .then(arr => arr.reduce((acc,curr) => acc.concat(curr) ,[])) ]) - .then(arr => resolve( [ ... arr[0], ... arr[1] ] )) + .then(arr => resolve( [].concat(arr[0]).concat(arr[1]) )) .catch(reject) }) diff --git a/src/atlasViewer/atlasViewer.pluginService.service.ts b/src/atlasViewer/atlasViewer.pluginService.service.ts index 363a86130659ad28d00283202d6de76b914ac03b..390fd9156c82ba4864244d6cd1f71c13cea9fa8f 100644 --- a/src/atlasViewer/atlasViewer.pluginService.service.ts +++ b/src/atlasViewer/atlasViewer.pluginService.service.ts @@ -107,7 +107,7 @@ export class PluginServices{ const widgetCompRef = this.widgetService.addNewWidget(pluginUnit,{ state : 'floating', exitable : true, - title : plugin.name + title : plugin.displayName || plugin.name }) const unsubscribeOnPluginDestroy = [] @@ -171,6 +171,7 @@ export class PluginHandler{ export interface PluginManifest{ name? : string + displayName? : string templateURL? : string template? : string scriptURL? : string