Commit 7aaa15ad by Mitsuhiro Tanda

(snapshot) save original url

parent 07e522bb
......@@ -41,6 +41,12 @@
<div class="dropdown-desc">Export the dashboard to a JSON file for others and to share on Grafana.net</div>
</a>
</li>
<li>
<a class="pointer" ng-if="dashboard.snapshot.originalUrl" ng-href="{{dashboard.snapshot.originalUrl}}">
<i class="fa fa-link"></i> Original Dashboard
<div class="dropdown-desc">Open original dashboard</div>
</a>
</li>
</ul>
</li>
<li ng-show="::dashboardMeta.canSave">
......
......@@ -41,7 +41,8 @@ function (angular, _) {
$scope.createSnapshot = function(external) {
$scope.dashboard.snapshot = {
timestamp: new Date()
timestamp: new Date(),
originalUrl: $location.absUrl()
};
$scope.loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment