Browse Source

Add a screenshot page

Gaël Métais 10 years ago
parent
commit
79d0898fb5
1 changed files with 3 additions and 4 deletions
  1. 3 4
      front/src/js/controllers/screenshotCtrl.js

+ 3 - 4
front/src/js/controllers/screenshotCtrl.js

@@ -16,13 +16,12 @@ screenshotCtrl.controller('ScreenshotCtrl', ['$scope', '$rootScope', '$routePara
             });
         } else {
             $scope.result = $rootScope.loadedResult;
-            init();
         }
     }
 
-    function init() {
-        
-    }
+    $scope.backToDashboard = function() {
+        $location.path('/result/' + $scope.runId);
+    };
 
     $scope.testAgain = function() {
         Runs.save({