Skip to content
Snippets Groups Projects
Commit 4fbe7908 authored by Xiao Gui's avatar Xiao Gui
Browse files

feat: show displayName and minor tweaks for pluginDev

parent 4cc29887
No related branches found
No related tags found
No related merge requests found
......@@ -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)
})
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment