(snapshot) restrict saving original url for local snapshot

This commit is contained in:
Mitsuhiro Tanda 2016-06-28 08:36:04 +09:00
parent 7aaa15ad95
commit cc519adcfc

View File

@ -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;