From 2e69b869904b848e8e6441d21f1a025fdb0224e0 Mon Sep 17 00:00:00 2001 From: Dominik Prokop Date: Mon, 11 May 2020 14:26:25 +0200 Subject: [PATCH] PluginsList: Remove unused panel options (#24501) * Remove unused panel options * satisfy ts --- .../app/plugins/panel/pluginlist/editor.html | 40 ------------------- public/app/plugins/panel/pluginlist/module.ts | 6 --- 2 files changed, 46 deletions(-) delete mode 100644 public/app/plugins/panel/pluginlist/editor.html diff --git a/public/app/plugins/panel/pluginlist/editor.html b/public/app/plugins/panel/pluginlist/editor.html deleted file mode 100644 index 4caf2ba4766..00000000000 --- a/public/app/plugins/panel/pluginlist/editor.html +++ /dev/null @@ -1,40 +0,0 @@ -
-
-
- Mode -
- -
-
-
- - - -
-
- -
-
- Search options - Query - - - -
- -
- Tags - - - -
-
- -
-
- Limit number to - -
-
- diff --git a/public/app/plugins/panel/pluginlist/module.ts b/public/app/plugins/panel/pluginlist/module.ts index 6e8ca6d8021..d0298cfc155 100644 --- a/public/app/plugins/panel/pluginlist/module.ts +++ b/public/app/plugins/panel/pluginlist/module.ts @@ -1,7 +1,6 @@ import _ from 'lodash'; import { PanelCtrl } from '../../../features/panel/panel_ctrl'; import { auto, IScope } from 'angular'; -import { PanelEvents } from '@grafana/data'; import { ContextSrv } from '../../../core/services/context_srv'; import { CoreEvents } from 'app/types'; import { getBackendSrv } from '@grafana/runtime'; @@ -25,7 +24,6 @@ class PluginListCtrl extends PanelCtrl { _.defaults(this.panel, this.panelDefaults); this.isAdmin = contextSrv.hasRole('Admin'); - this.events.on(PanelEvents.editModeInitialized, this.onInitEditMode.bind(this)); this.pluginList = []; this.viewModel = [ { header: 'Installed Apps', list: [], type: 'app' }, @@ -36,10 +34,6 @@ class PluginListCtrl extends PanelCtrl { this.update(); } - onInitEditMode() { - this.addEditorTab('Options', 'public/app/plugins/panel/pluginlist/editor.html'); - } - gotoPlugin(plugin: { id: any }, evt: any) { if (evt) { evt.stopPropagation();