feat: Introduce IsDataPanel attribute to plugin.json

This commit is contained in:
Johannes Schill
2019-02-12 12:28:53 +01:00
parent 0811fbd6d0
commit c4b2dcefbe
6 changed files with 6 additions and 2 deletions
+1
View File
@@ -145,6 +145,7 @@ func (hs *HTTPServer) getFrontendSettingsMap(c *m.ReqContext) (map[string]interf
"info": panel.Info,
"hideFromList": panel.HideFromList,
"sort": getPanelSort(panel.Id),
"isDataPanel": panel.IsDataPanel,
}
}
+1
View File
@@ -47,6 +47,7 @@ type PluginBase struct {
BaseUrl string `json:"baseUrl"`
HideFromList bool `json:"hideFromList,omitempty"`
State PluginState `json:"state,omitempty"`
IsDataPanel bool `json:"isDataPanel"`
IncludedInAppId string `json:"-"`
PluginDir string `json:"-"`