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
c047dacf
Commit
c047dacf
authored
Jul 01, 2016
by
Carl Bergquist
Committed by
GitHub
Jul 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5442 from mtanda/snapshot_orig_url
(snapshot) save original url
parents
07e522bb
630d0d07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
public/app/features/dashboard/dashnav/dashnav.html
+3
-0
public/app/features/dashboard/shareSnapshotCtrl.js
+4
-0
No files found.
public/app/features/dashboard/dashnav/dashnav.html
View file @
c047dacf
...
...
@@ -46,6 +46,9 @@
<li
ng-show=
"::dashboardMeta.canSave"
>
<a
ng-click=
"saveDashboard()"
bs-tooltip=
"'Save dashboard <br> CTRL+S'"
data-placement=
"bottom"
><i
class=
"fa fa-save"
></i></a>
</li>
<li
ng-if=
"dashboard.snapshot.originalUrl"
>
<a
ng-href=
"{{dashboard.snapshot.originalUrl}}"
bs-tooltip=
"'Open original dashboard'"
data-placement=
"bottom"
><i
class=
"fa fa-link"
></i></a>
</li>
<li
ng-if=
"::showSettingsMenu"
class=
"dropdown"
>
<a
class=
"pointer"
ng-click=
"hideTooltip($event)"
bs-tooltip=
"'Manage dashboard'"
data-placement=
"bottom"
data-toggle=
"dropdown"
><i
class=
"fa fa-cog"
></i></a>
<ul
class=
"dropdown-menu"
>
...
...
public/app/features/dashboard/shareSnapshotCtrl.js
View file @
c047dacf
...
...
@@ -44,6 +44,10 @@ function (angular, _) {
timestamp
:
new
Date
()
};
if
(
!
external
)
{
$scope
.
dashboard
.
snapshot
.
originalUrl
=
$location
.
absUrl
();
}
$scope
.
loading
=
true
;
$scope
.
snapshot
.
external
=
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