mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(pluginlist): fixed issue with plugin list, fixes #5068
This commit is contained in:
parent
83f5080274
commit
958f97232f
@ -24,7 +24,16 @@ func GetPluginSettings(orgId int64) (map[string]*m.PluginSettingInfoDTO, error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// default to enabled true
|
// default to enabled true
|
||||||
opt := &m.PluginSettingInfoDTO{Enabled: true}
|
opt := &m.PluginSettingInfoDTO{
|
||||||
|
PluginId: pluginDef.Id,
|
||||||
|
OrgId: orgId,
|
||||||
|
Enabled: true,
|
||||||
|
}
|
||||||
|
|
||||||
|
// apps are disabled by default
|
||||||
|
if pluginDef.Type == PluginTypeApp {
|
||||||
|
opt.Enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
// if it's included in app check app settings
|
// if it's included in app check app settings
|
||||||
if pluginDef.IncludedInAppId != "" {
|
if pluginDef.IncludedInAppId != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user