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
0f40e06d
Commit
0f40e06d
authored
May 29, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'timespanconfig' of github.com:rmca/grafana into rmca-timespanconfig
parents
86b204ac
31c75886
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
src/app/components/settings.js
+1
-0
src/app/controllers/playlistCtrl.js
+5
-5
src/config.sample.js
+1
-0
No files found.
src/app/components/settings.js
View file @
0f40e06d
...
...
@@ -25,6 +25,7 @@ function (_, crypto) {
grafana_index
:
'grafana-dash'
,
elasticsearch_all_disabled
:
false
,
timezoneOffset
:
null
,
playlistTimespan
:
"15s"
,
unsaved_changes_warning
:
true
};
...
...
src/app/controllers/playlistCtrl.js
View file @
0f40e06d
define
([
'angular'
,
'underscore'
'underscore'
,
'config'
],
function
(
angular
,
_
)
{
function
(
angular
,
_
,
config
)
{
'use strict'
;
var
module
=
angular
.
module
(
'kibana.controllers'
);
...
...
@@ -10,7 +11,7 @@ function (angular, _) {
module
.
controller
(
'PlaylistCtrl'
,
function
(
$scope
,
playlistSrv
)
{
$scope
.
init
=
function
()
{
$scope
.
timespan
=
"15s"
;
$scope
.
timespan
=
config
.
playlistTimespan
;
$scope
.
loadFavorites
();
$scope
.
$on
(
'modal-opened'
,
$scope
.
loadFavorites
);
};
...
...
@@ -35,4 +36,4 @@ function (angular, _) {
});
});
\ No newline at end of file
});
src/config.sample.js
View file @
0f40e06d
...
...
@@ -14,6 +14,7 @@ function (Settings) {
* For Basic authentication use: http://username:password@domain.com:9200
*/
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
playlistTimespan
:
"15s"
,
/**
* graphite-web url:
...
...
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