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
ef22a87f
Commit
ef22a87f
authored
Mar 02, 2016
by
Mitsuhiro Tanda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove align option
parent
7da57e0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
public/app/features/dashboard/timeSrv.js
+2
-5
public/app/features/dashboard/timepicker/dropdown.html
+0
-1
public/app/features/dashboard/timepicker/timepicker.ts
+1
-1
No files found.
public/app/features/dashboard/timeSrv.js
View file @
ef22a87f
...
@@ -65,14 +65,11 @@ define([
...
@@ -65,14 +65,11 @@ define([
}
}
};
};
this
.
setAutoRefresh
=
function
(
interval
,
align
)
{
this
.
setAutoRefresh
=
function
(
interval
)
{
this
.
dashboard
.
refresh
=
interval
;
this
.
dashboard
.
refresh
=
interval
;
if
(
interval
)
{
if
(
interval
)
{
var
_i
=
kbn
.
interval_to_ms
(
interval
);
var
_i
=
kbn
.
interval_to_ms
(
interval
);
var
wait_ms
=
0
;
var
wait_ms
=
_i
-
(
Date
.
now
()
%
_i
);
if
(
align
)
{
wait_ms
=
_i
-
(
Date
.
now
()
%
_i
);
}
$timeout
(
function
()
{
$timeout
(
function
()
{
self
.
start_scheduled_refresh
(
_i
);
self
.
start_scheduled_refresh
(
_i
);
},
wait_ms
);
},
wait_ms
);
...
...
public/app/features/dashboard/timepicker/dropdown.html
View file @
ef22a87f
...
@@ -40,7 +40,6 @@
...
@@ -40,7 +40,6 @@
<div
class=
"gf-form max-width-28"
>
<div
class=
"gf-form max-width-28"
>
<select
ng-model=
"ctrl.refresh.value"
class=
"gf-form-input input-medium"
ng-options=
"f.value as f.text for f in ctrl.refresh.options"
></select>
<select
ng-model=
"ctrl.refresh.value"
class=
"gf-form-input input-medium"
ng-options=
"f.value as f.text for f in ctrl.refresh.options"
></select>
</div>
</div>
<editor-checkbox
text=
"Align"
model=
"ctrl.refresh.align"
></editor-checkbox>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<button
type=
"submit"
class=
"btn gf-form-btn btn-secondary"
ng-click=
"ctrl.applyCustom();"
ng-disabled=
"!timeForm.$valid"
>
Apply
</button>
<button
type=
"submit"
class=
"btn gf-form-btn btn-secondary"
ng-click=
"ctrl.applyCustom();"
ng-disabled=
"!timeForm.$valid"
>
Apply
</button>
</div>
</div>
...
...
public/app/features/dashboard/timepicker/timepicker.ts
View file @
ef22a87f
...
@@ -109,7 +109,7 @@ export class TimePickerCtrl {
...
@@ -109,7 +109,7 @@ export class TimePickerCtrl {
applyCustom
()
{
applyCustom
()
{
if
(
this
.
refresh
.
value
!==
this
.
dashboard
.
refresh
)
{
if
(
this
.
refresh
.
value
!==
this
.
dashboard
.
refresh
)
{
this
.
timeSrv
.
setAutoRefresh
(
this
.
refresh
.
value
,
this
.
refresh
.
align
);
this
.
timeSrv
.
setAutoRefresh
(
this
.
refresh
.
value
);
}
}
this
.
timeSrv
.
setTime
(
this
.
timeRaw
,
true
);
this
.
timeSrv
.
setTime
(
this
.
timeRaw
,
true
);
...
...
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