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
0c9f664e
Commit
0c9f664e
authored
Feb 04, 2017
by
Ryuichi Sakai
Committed by
Daniel Lee
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make timeout for snapshot creation configurable
parent
9f80e8c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
public/app/features/dashboard/partials/shareModal.html
+13
-0
public/app/features/dashboard/shareSnapshotCtrl.js
+2
-1
No files found.
public/app/features/dashboard/partials/shareModal.html
View file @
0c9f664e
...
@@ -148,6 +148,19 @@
...
@@ -148,6 +148,19 @@
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
ng
-
if
=
"step === 1"
>
<
p
class
=
"share-modal-info-text"
>
You
may
need
to
configure
the
timeout
value
if
it
takes
a
long
time
to
collect
your
dashboard
's metrics.
</p>
</div>
<div class="gf-form-group share-modal-options">
<div class="gf-form" ng-if="step === 1">
<span class="gf-form-label width-12">Timeout (seconds)</span>
<input type="number" ng-model="snapshot.timeoutSeconds" class="gf-form-input max-width-15" >
</div>
</div>
<div ng-if="step === 1" class="gf-form-button-row">
<div ng-if="step === 1" class="gf-form-button-row">
<button class="btn gf-form-btn width-10 btn-success" ng-click="createSnapshot()" ng-disabled="loading">
<button class="btn gf-form-btn width-10 btn-success" ng-click="createSnapshot()" ng-disabled="loading">
<i class="fa fa-save"></i>
<i class="fa fa-save"></i>
...
...
public/app/features/dashboard/shareSnapshotCtrl.js
View file @
0c9f664e
...
@@ -12,6 +12,7 @@ function (angular, _) {
...
@@ -12,6 +12,7 @@ function (angular, _) {
$scope
.
snapshot
=
{
$scope
.
snapshot
=
{
name
:
$scope
.
dashboard
.
title
,
name
:
$scope
.
dashboard
.
title
,
expires
:
0
,
expires
:
0
,
timeoutSeconds
:
4
,
};
};
$scope
.
step
=
1
;
$scope
.
step
=
1
;
...
@@ -55,7 +56,7 @@ function (angular, _) {
...
@@ -55,7 +56,7 @@ function (angular, _) {
$timeout
(
function
()
{
$timeout
(
function
()
{
$scope
.
saveSnapshot
(
external
);
$scope
.
saveSnapshot
(
external
);
},
4
000
);
},
$scope
.
snapshot
.
timeoutSeconds
*
1
000
);
};
};
$scope
.
saveSnapshot
=
function
(
external
)
{
$scope
.
saveSnapshot
=
function
(
external
)
{
...
...
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