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
705cbb40
Commit
705cbb40
authored
Dec 17, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup now that angular panel edit is no longer
parent
7653d8a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
24 deletions
+4
-24
public/app/features/panel/panel_ctrl.ts
+0
-16
public/app/plugins/datasource/prometheus/partials/query.editor.html
+4
-8
No files found.
public/app/features/panel/panel_ctrl.ts
View file @
705cbb40
...
@@ -94,22 +94,6 @@ export class PanelCtrl {
...
@@ -94,22 +94,6 @@ export class PanelCtrl {
this
.
editModeInitiated
=
true
;
this
.
editModeInitiated
=
true
;
this
.
events
.
emit
(
'init-edit-mode'
,
null
);
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
?)
{
addEditorTab
(
title
,
directiveFn
,
index
?,
icon
?)
{
...
...
public/app/plugins/datasource/prometheus/partials/query.editor.html
View file @
705cbb40
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label
width-8"
>
Legend format
</label>
<label
class=
"gf-form-label
"
>
Legend
</label>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.legendFormat"
spellcheck=
'false'
placeholder=
"legend format"
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.legendFormat"
spellcheck=
'false'
placeholder=
"legend format"
data-min-length=
0
data-items=
1000
ng-model-onblur
ng-change=
"ctrl.refreshMetricData()"
>
data-min-length=
0
data-items=
1000
ng-model-onblur
ng-change=
"ctrl.refreshMetricData()"
>
</input>
</input>
...
@@ -39,23 +39,19 @@
...
@@ -39,23 +39,19 @@
</div>
</div>
</div>
</div>
<div
class=
"gf-form"
>
<div
class=
"gf-form
gf-form--grow
"
>
<label
class=
"gf-form-label width-
6"
>
Format as
</label>
<label
class=
"gf-form-label width-
5"
>
Format
</label>
<div
class=
"gf-form-select-wrapper width-8"
>
<div
class=
"gf-form-select-wrapper width-8"
>
<select
class=
"gf-form-input gf-size-auto"
ng-model=
"ctrl.target.format"
ng-options=
"f.value as f.text for f in ctrl.formats"
<select
class=
"gf-form-input gf-size-auto"
ng-model=
"ctrl.target.format"
ng-options=
"f.value as f.text for f in ctrl.formats"
ng-change=
"ctrl.refresh()"
></select>
ng-change=
"ctrl.refresh()"
></select>
</div>
</div>
<gf-form-switch
class=
"gf-form"
label=
"Instant"
label-class=
"width-5"
checked=
"ctrl.target.instant"
on-change=
"ctrl.refresh()"
>
<gf-form-switch
class=
"gf-form"
label=
"Instant"
label-class=
"width-5"
checked=
"ctrl.target.instant"
on-change=
"ctrl.refresh()"
>
</gf-form-switch>
</gf-form-switch>
<label
class=
"gf-form-label"
>
<label
class=
"gf-form-label
gf-form-label--grow
"
>
<a
href=
"{{ctrl.linkToPrometheus}}"
target=
"_blank"
bs-tooltip=
"'Link to Graph in Prometheus'"
>
<a
href=
"{{ctrl.linkToPrometheus}}"
target=
"_blank"
bs-tooltip=
"'Link to Graph in Prometheus'"
>
<i
class=
"fa fa-share-square-o"
></i>
<i
class=
"fa fa-share-square-o"
></i>
</a>
</a>
</label>
</label>
</div>
</div>
<div
class=
"gf-form gf-form--grow"
>
<div
class=
"gf-form-label gf-form-label--grow"
></div>
</div>
</div>
</div>
</query-editor-row>
</query-editor-row>
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