Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
cace1d6b
Commit
cace1d6b
authored
Oct 11, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change(plugin page): changed tab order on plugin page, closes #6123
parent
73fc6590
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
public/app/features/plugins/partials/plugin_edit.html
+3
-3
public/app/features/plugins/plugin_edit_ctrl.ts
+5
-5
No files found.
public/app/features/plugins/partials/plugin_edit.html
View file @
cace1d6b
...
...
@@ -30,12 +30,12 @@
</div>
<div
class=
"page-body"
>
<div
class=
"tab-content page-content-with-sidebar"
ng-if=
"ctrl.tab
Index === 0
"
>
<div
class=
"tab-content page-content-with-sidebar"
ng-if=
"ctrl.tab
s[ctrl.tabIndex] === 'Readme'
"
>
<div
ng-bind-html=
"ctrl.readmeHtml"
class=
"plugin-markdown-readme"
>
</div>
</div>
<div
class=
"tab-content page-content-with-sidebar"
ng-if=
"ctrl.tab
Index === 1
"
>
<div
class=
"tab-content page-content-with-sidebar"
ng-if=
"ctrl.tab
s[ctrl.tabIndex] === 'Config'
"
>
<div
ng-if=
"ctrl.model.id"
>
<plugin-component
type=
"app-config-ctrl"
></plugin-component>
...
...
@@ -47,7 +47,7 @@
</div>
</div>
<div
class=
"tab-content page-content-with-sidebar"
ng-if=
"ctrl.tab
Index === 2
"
>
<div
class=
"tab-content page-content-with-sidebar"
ng-if=
"ctrl.tab
s[ctrl.tabIndex] === 'Dashboards'
"
>
<dashboard-import-list
plugin=
"ctrl.model"
></dashboard-import-list>
</div>
...
...
public/app/features/plugins/plugin_edit_ctrl.ts
View file @
cace1d6b
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment