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
224d2f92
Commit
224d2f92
authored
Feb 01, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save now closes edit mode. (#52).
parent
250e3546
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
src/app/controllers/dash.js
+6
-0
src/app/controllers/dashLoader.js
+9
-8
src/app/panels/graphite/module.js
+1
-1
src/app/panels/graphite/styleEditor.html
+0
-2
No files found.
src/app/controllers/dash.js
View file @
224d2f92
...
...
@@ -72,6 +72,12 @@ function (angular, $, config, _) {
$rootScope
.
fullscreen
=
false
;
});
$rootScope
.
$on
(
'dashboard-saved'
,
function
()
{
if
(
$rootScope
.
fullscreen
)
{
$rootScope
.
$emit
(
'panel-fullscreen-exit'
);
}
});
keyboardManager
.
bind
(
'ctrl+f'
,
function
(
evt
)
{
$rootScope
.
$emit
(
'open-search'
,
evt
);
},
{
inputDisabled
:
true
});
...
...
src/app/controllers/dashLoader.js
View file @
224d2f92
...
...
@@ -65,17 +65,18 @@ function (angular, _, moment) {
type
,
(
$scope
.
elasticsearch
.
title
||
dashboard
.
current
.
title
),
(
$scope
.
loader
.
save_temp_ttl_enable
?
ttl
:
false
)
).
then
(
function
(
result
)
{
if
(
!
_
.
isUndefined
(
result
.
_id
))
{
alertSrv
.
set
(
'Dashboard Saved'
,
'This dashboard has been saved to Elasticsearch as "'
+
result
.
_id
+
'"'
,
'success'
,
5000
);
).
then
(
function
(
result
)
{
if
(
_
.
isUndefined
(
result
.
_id
))
{
alertSrv
.
set
(
'Save failed'
,
'Dashboard could not be saved to Elasticsearch'
,
'error'
,
5000
);
return
;
}
alertSrv
.
set
(
'Dashboard Saved'
,
'This dashboard has been saved to Elasticsearch as "'
+
result
.
_id
+
'"'
,
'success'
,
5000
);
if
(
type
===
'temp'
)
{
$scope
.
share
=
dashboard
.
share_link
(
dashboard
.
current
.
title
,
'temp'
,
result
.
_id
);
}
}
else
{
alertSrv
.
set
(
'Save failed'
,
'Dashboard could not be saved to Elasticsearch'
,
'error'
,
5000
);
}
$rootScope
.
$emit
(
'dashboard-saved'
);
});
};
...
...
src/app/panels/graphite/module.js
View file @
224d2f92
...
...
@@ -56,8 +56,8 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
],
menuItems
:
[
{
text
:
'View fullscreen'
,
click
:
'toggleFullscreen()'
},
{
text
:
'Edit'
,
click
:
'openConfigureModal()'
},
{
text
:
'Fullscreen'
,
click
:
'toggleFullscreen()'
},
{
text
:
'Duplicate'
,
click
:
'duplicate()'
},
{
text
:
'Span'
,
submenu
:
[
{
text
:
'1'
,
click
:
'updateColumnSpan(1)'
},
...
...
src/app/panels/graphite/styleEditor.html
View file @
224d2f92
...
...
@@ -71,9 +71,7 @@
<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>
<div
class=
"editor-row"
>
<div
class=
"section"
>
<h5>
Legend
<h5>
<div
class=
"editor-option"
>
...
...
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