Skip to content
Snippets Groups Projects
Commit 2c6c649d authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

bugfix: allow plugin to be launched when bundledplugin is set

parent e6e58b1c
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,15 @@ export class PluginBannerUI{
}
clickPlugin(plugin:PluginManifest){
if(PLUGINDEV)
if(this.pluginEnabledFlag)
this.pluginServices.launchPlugin(plugin)
else
return
}
get pluginEnabledFlag(){
return PLUGINDEV || BUNDLEDPLUGINS.length > 0
? true
: false
}
}
\ No newline at end of file
<div
placement = "bottom"
tooltip = "coming soon"
[tooltip] = "pluginEnabledFlag ? null : 'coming soon'"
*ngFor = "let plugin of pluginServices.fetchedPluginManifests"
(click) = "clickPlugin(plugin)"
class = "btn btn-default btn-disabled">
[ngClass] = "{'btn-disabled' : !pluginEnabledFlag}"
class = "btn btn-default">
{{ plugin.displayName ? plugin.displayName : plugin.name }}
</div>
\ No newline at end of file
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