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
24dd2fa1
Commit
24dd2fa1
authored
Dec 09, 2013
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed close of full edit mode
parent
79395cc6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
17 deletions
+26
-17
src/app/controllers/row.js
+6
-0
src/app/directives/kibanaPanel.js
+1
-2
src/app/panels/graphite/module.html
+1
-6
src/app/panels/graphite/module.js
+9
-0
src/app/panels/graphite/styleEditor.html
+9
-9
No files found.
src/app/controllers/row.js
View file @
24dd2fa1
...
...
@@ -58,6 +58,12 @@ function (angular, app, _) {
$scope
.
row
.
panels
.
push
(
panel
);
};
$scope
.
remove_panel_from_row
=
function
(
row
,
panel
)
{
if
(
confirm
(
'Are you sure you want to remove this '
+
panel
.
type
+
' panel?'
))
{
row
.
panels
=
_
.
without
(
row
.
panels
,
panel
);
}
};
/** @scratch /panels/0
* [[panels]]
* = Panels
...
...
src/app/directives/kibanaPanel.js
View file @
24dd2fa1
...
...
@@ -15,8 +15,7 @@ function (angular) {
'<span class="extra row-button" ng-show="panel.editable != false">'
+
'<span confirm-click="row.panels = _.without(row.panels,panel)" '
+
'confirmation="Are you sure you want to remove this {{panel.type}} panel?" class="pointer">'
+
'<span ng-click="remove_panel_from_row(row,panel)" class="pointer">'
+
'<i class="icon-remove pointer" bs-tooltip="
\'
Remove
\'
"></i></span>'
+
'</span>'
+
...
...
src/app/panels/graphite/module.html
View file @
24dd2fa1
...
...
@@ -112,7 +112,7 @@
</span>
</span>
<div
class=
"fluid-row panel-full-edit-mode-controls"
ng-show=
"inEditMode"
style=
"margin
-top
: 20px;"
>
<div
class=
"fluid-row panel-full-edit-mode-controls"
ng-show=
"inEditMode"
style=
"margin: 20px;"
>
<div
ng-model=
"editor.index"
bs-tabs
>
<div
ng-repeat=
"tab in setEditorTabs(panelMeta)"
data-title=
"{{tab}}"
>
</div>
...
...
@@ -128,9 +128,5 @@
<div
ng-repeat=
"tab in panelMeta.editorTabs"
ng-show=
"editorTabs[editor.index] == tab.title"
>
<div
ng-include
src=
"tab.src"
></div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-danger"
ng-click=
"closeEditMode()"
>
Close
</button>
</div>
</div>
</div>
\ No newline at end of file
src/app/panels/graphite/module.js
View file @
24dd2fa1
...
...
@@ -225,6 +225,15 @@ function (angular, app, $, _, kbn, moment, timeSeries, graphiteSrv) {
}
};
$scope
.
remove_panel_from_row
=
function
(
row
,
panel
)
{
if
(
$scope
.
inEditMode
)
{
$rootScope
.
$emit
(
'fullEditMode'
,
false
);
}
else
{
$scope
.
$parent
.
remove_panel_from_row
(
row
,
panel
);
}
};
$scope
.
closeEditMode
=
function
()
{
$rootScope
.
$emit
(
'fullEditMode'
,
false
);
};
...
...
src/app/panels/graphite/styleEditor.html
View file @
24dd2fa1
...
...
@@ -14,38 +14,38 @@
<label
class=
"small"
>
Selectable
</label><input
type=
"checkbox"
ng-model=
"panel.interactive"
ng-checked=
"panel.interactive"
>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
xAxis
</label><input
type=
"checkbox"
ng-model=
"panel['x-axis']"
ng-checked=
"panel['x-axis']"
></div>
<label
class=
"small"
>
xAxis
</label><input
type=
"checkbox"
ng-model=
"panel['x-axis']"
ng-checked=
"panel['x-axis']"
ng-change=
"render()"
></div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
yAxis
</label><input
type=
"checkbox"
ng-model=
"panel['y-axis']"
ng-checked=
"panel['y-axis']"
></div>
<label
class=
"small"
>
yAxis
</label><input
type=
"checkbox"
ng-model=
"panel['y-axis']"
ng-checked=
"panel['y-axis']"
ng-change=
"render()"
></div>
<div
class=
"editor-option"
ng-show=
"panel.lines"
>
<label
class=
"small"
>
Line Fill
</label>
<select
class=
"input-mini"
ng-model=
"panel.fill"
ng-options=
"f for f in [0,1,2,3,4,5,6,7,8,9,10]"
></select>
<select
class=
"input-mini"
ng-model=
"panel.fill"
ng-options=
"f for f in [0,1,2,3,4,5,6,7,8,9,10]"
ng-change=
"render()"
></select>
</div>
<div
class=
"editor-option"
ng-show=
"panel.lines"
>
<label
class=
"small"
>
Line Width
</label>
<select
class=
"input-mini"
ng-model=
"panel.linewidth"
ng-options=
"f for f in [0,1,2,3,4,5,6,7,8,9,10]"
></select>
<select
class=
"input-mini"
ng-model=
"panel.linewidth"
ng-options=
"f for f in [0,1,2,3,4,5,6,7,8,9,10]"
ng-change=
"render()"
></select>
</div>
<div
class=
"editor-option"
ng-show=
"panel.points"
>
<label
class=
"small"
>
Point Radius
</label>
<select
class=
"input-mini"
ng-model=
"panel.pointradius"
ng-options=
"f for f in [1,2,3,4,5,6,7,8,9,10]"
></select>
<select
class=
"input-mini"
ng-model=
"panel.pointradius"
ng-options=
"f for f in [1,2,3,4,5,6,7,8,9,10]"
ng-change=
"render()"
></select>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Y Format
<tip>
Y-axis formatting
</tip></label>
<select
class=
"input-small"
ng-model=
"panel.y_format"
ng-options=
"f for f in ['none','short','bytes']"
></select>
<select
class=
"input-small"
ng-model=
"panel.y_format"
ng-options=
"f for f in ['none','short','bytes']"
ng-change=
"render()"
></select>
</div>
</div>
<div
class=
"section"
>
<h5>
Multiple Series
</h5>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Stack
</label><input
type=
"checkbox"
ng-model=
"panel.stack"
ng-checked=
"panel.stack"
>
<label
class=
"small"
>
Stack
</label><input
type=
"checkbox"
ng-model=
"panel.stack"
ng-checked=
"panel.stack"
ng-change=
"render()"
>
</div>
<div
class=
"editor-option"
ng-show=
"panel.stack"
>
<label
style=
"white-space:nowrap"
class=
"small"
>
Percent
<tip>
Stack as a percentage of total
</tip></label>
<input
type=
"checkbox"
ng-model=
"panel.percentage"
ng-checked=
"panel.percentage"
>
<input
type=
"checkbox"
ng-model=
"panel.percentage"
ng-checked=
"panel.percentage"
ng-change=
"render()"
>
</div>
<div
class=
"editor-option"
ng-show=
"panel.stack"
>
<label
class=
"small"
>
Stacked Values
<tip>
How should the values in stacked charts to be calculated?
</tip></label>
<select
class=
"input-small"
ng-model=
"panel.tooltip.value_type"
ng-options=
"f for f in ['cumulative','individual']"
></select>
<select
class=
"input-small"
ng-model=
"panel.tooltip.value_type"
ng-options=
"f for f in ['cumulative','individual']"
ng-change=
"render()"
></select>
</div>
</div>
</div>
...
...
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