Commit cc519adc by Mitsuhiro Tanda

(snapshot) restrict saving original url for local snapshot

parent 7aaa15ad
......@@ -41,10 +41,13 @@ function (angular, _) {
$scope.createSnapshot = function(external) {
$scope.dashboard.snapshot = {
timestamp: new Date(),
originalUrl: $location.absUrl()
timestamp: new Date()
};
if (!external) {
$scope.dashboard.snapshot.originalUrl = $location.absUrl();
}
$scope.loading = true;
$scope.snapshot.external = external;
......
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