From cace1d6b8fc3e59365f15153739cae4719efbbc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 11 Oct 2016 13:40:16 +0200 Subject: [PATCH] change(plugin page): changed tab order on plugin page, closes #6123 --- public/app/features/plugins/partials/plugin_edit.html | 6 +++--- public/app/features/plugins/plugin_edit_ctrl.ts | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/app/features/plugins/partials/plugin_edit.html b/public/app/features/plugins/partials/plugin_edit.html index 402e2f24c3f..2acb3eef8bf 100644 --- a/public/app/features/plugins/partials/plugin_edit.html +++ b/public/app/features/plugins/partials/plugin_edit.html @@ -30,12 +30,12 @@
-
+
-
+
@@ -47,7 +47,7 @@
-
+
diff --git a/public/app/features/plugins/plugin_edit_ctrl.ts b/public/app/features/plugins/plugin_edit_ctrl.ts index ba9b4ad1d2b..8d7f360aeeb 100644 --- a/public/app/features/plugins/plugin_edit_ctrl.ts +++ b/public/app/features/plugins/plugin_edit_ctrl.ts @@ -27,7 +27,7 @@ export class PluginEditCtrl { this.model = {}; this.pluginId = $routeParams.pluginId; this.tabIndex = 0; - this.tabs = ['Overview']; + this.tabs = ['Readme']; this.preUpdateHook = () => Promise.resolve(); this.postUpdateHook = () => Promise.resolve(); @@ -48,13 +48,13 @@ export class PluginEditCtrl { }); if (this.model.type === 'app') { - this.tabIndex = 1; - this.tabs.push('Config'); - this.hasDashboards = _.find(result.includes, {type: 'dashboard'}); if (this.hasDashboards) { - this.tabs.push('Dashboards'); + this.tabs.unshift('Dashboards'); } + + this.tabs.unshift('Config'); + this.tabIndex = 0; } return this.initReadme();