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