From 705cbb4095acc31261d4ba6e5ada5bfc1746292f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 17 Dec 2018 21:29:25 +0100 Subject: [PATCH] Minor cleanup now that angular panel edit is no longer --- public/app/features/panel/panel_ctrl.ts | 16 ---------------- .../prometheus/partials/query.editor.html | 12 ++++-------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 0a782ec808c..86f80b114e3 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -94,22 +94,6 @@ export class PanelCtrl { this.editModeInitiated = true; this.events.emit('init-edit-mode', null); - - const urlTab = (this.$injector.get('$routeParams').tab || '').toLowerCase(); - if (urlTab) { - this.editorTabs.forEach((tab, i) => { - if (tab.title.toLowerCase() === urlTab) { - this.editorTabIndex = i; - } - }); - } - } - - changeTab(newIndex) { - this.editorTabIndex = newIndex; - const route = this.$injector.get('$route'); - route.current.params.tab = this.editorTabs[newIndex].title.toLowerCase(); - route.updateParams(); } addEditorTab(title, directiveFn, index?, icon?) { diff --git a/public/app/plugins/datasource/prometheus/partials/query.editor.html b/public/app/plugins/datasource/prometheus/partials/query.editor.html index 0f0a4b09014..f63beeedbd3 100644 --- a/public/app/plugins/datasource/prometheus/partials/query.editor.html +++ b/public/app/plugins/datasource/prometheus/partials/query.editor.html @@ -9,7 +9,7 @@
- + @@ -39,23 +39,19 @@
-
- +
+
-
- -
-
-