Explorar el Código

feat(plugins): remove app bundled plugins from plugins list

Torkel Ödegaard hace 9 años
padre
commit
f80c2406a8
Se han modificado 2 ficheros con 6 adiciones y 2 borrados
  1. 5 0
      pkg/api/plugin_setting.go
  2. 1 2
      public/app/plugins/panel/graph/graph.js

+ 5 - 0
pkg/api/plugin_setting.go

@@ -17,6 +17,11 @@ func GetPluginList(c *middleware.Context) Response {
 
 	result := make([]*dtos.PluginListItem, 0)
 	for _, pluginDef := range plugins.Plugins {
+		// filter out plugin components
+		if pluginDef.IncludedInAppId != "" {
+			continue
+		}
+
 		listItem := &dtos.PluginListItem{
 			PluginId: pluginDef.Id,
 			Name:     pluginDef.Name,

+ 1 - 2
public/app/plugins/panel/graph/graph.js

@@ -196,9 +196,8 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
                 fill: 1,
                 fillColor: false,
                 radius: panel.points ? panel.pointradius : 2
-                // little points when highlight points
               },
-              shadowSize: 1
+              shadowSize: 0
             },
             yaxes: [],
             xaxis: {},