diff --git a/public/app/core/components/switch.ts b/public/app/core/components/switch.ts
index e0971c02f9b..1dddae20d49 100644
--- a/public/app/core/components/switch.ts
+++ b/public/app/core/components/switch.ts
@@ -7,10 +7,10 @@ import coreModule from 'app/core/core_module';
import Drop from 'tether-drop';
var template = `
-
+
-
-
+
+
`;
@@ -18,10 +18,12 @@ export class SwitchCtrl {
onChange: any;
checked: any;
show: any;
+ id: any;
/** @ngInject */
- constructor() {
+ constructor($scope) {
this.show = true;
+ this.id = $scope.$id;
}
internalOnChange() {
diff --git a/public/app/plugins/panel/graph/axisEditor.html b/public/app/plugins/panel/graph/axisEditor.html
deleted file mode 100644
index 184c762943d..00000000000
--- a/public/app/plugins/panel/graph/axisEditor.html
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-
-
-
diff --git a/public/app/plugins/panel/graph/module.ts b/public/app/plugins/panel/graph/module.ts
index 43fbddd9b24..c99f9070af3 100644
--- a/public/app/plugins/panel/graph/module.ts
+++ b/public/app/plugins/panel/graph/module.ts
@@ -123,8 +123,9 @@ class GraphCtrl extends MetricsPanelCtrl {
}
onInitEditMode() {
- this.addEditorTab('Axes', 'public/app/plugins/panel/graph/axisEditor.html', 2);
- this.addEditorTab('Display', 'public/app/plugins/panel/graph/styleEditor.html', 3);
+ this.addEditorTab('Axes', 'public/app/plugins/panel/graph/tab_axes.html', 2);
+ this.addEditorTab('Legend', 'public/app/plugins/panel/graph/tab_legend.html', 3);
+ this.addEditorTab('Display', 'public/app/plugins/panel/graph/tab_display.html', 4);
this.logScales = {
'linear': 1,
diff --git a/public/app/plugins/panel/graph/tab_axes.html b/public/app/plugins/panel/graph/tab_axes.html
new file mode 100644
index 00000000000..e7e35055d5c
--- /dev/null
+++ b/public/app/plugins/panel/graph/tab_axes.html
@@ -0,0 +1,70 @@
+
+
+
diff --git a/public/app/plugins/panel/graph/styleEditor.html b/public/app/plugins/panel/graph/tab_display.html
similarity index 95%
rename from public/app/plugins/panel/graph/styleEditor.html
rename to public/app/plugins/panel/graph/tab_display.html
index 17a9d702329..5c021dae8e1 100644
--- a/public/app/plugins/panel/graph/styleEditor.html
+++ b/public/app/plugins/panel/graph/tab_display.html
@@ -1,5 +1,5 @@
-