From 0a1650d265cf917fbf24a68ce7efd0a0d6f5fe90 Mon Sep 17 00:00:00 2001 From: Marcus Efraimsson Date: Mon, 27 Apr 2020 21:15:44 +0200 Subject: [PATCH] Image rendering: Fix missing icon on plugins list (#23958) Fixes #23189 --- pkg/plugins/plugins.go | 4 ++++ pkg/plugins/renderer_plugin.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/plugins/plugins.go b/pkg/plugins/plugins.go index db9cdd59eee..72f76dbbdc2 100644 --- a/pkg/plugins/plugins.go +++ b/pkg/plugins/plugins.go @@ -121,6 +121,10 @@ func (pm *PluginManager) Init() error { app.initApp() } + if Renderer != nil { + Renderer.initFrontendPlugin() + } + for _, p := range Plugins { if p.IsCorePlugin { p.Signature = PluginSignatureInternal diff --git a/pkg/plugins/renderer_plugin.go b/pkg/plugins/renderer_plugin.go index 2cc4560aaca..0b5f6e019d4 100644 --- a/pkg/plugins/renderer_plugin.go +++ b/pkg/plugins/renderer_plugin.go @@ -13,7 +13,7 @@ import ( ) type RendererPlugin struct { - PluginBase + FrontendPluginBase Executable string `json:"executable,omitempty"` GrpcPluginV1 pluginModel.RendererPlugin