Add the screenshot option in front-end

This commit is contained in:
Gaël Métais
2015-02-05 18:49:05 +01:00
parent efa4151850
commit 6a844e163b
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ dashboardCtrl.controller('DashboardCtrl', ['$scope', '$rootScope', '$routeParams
$scope.testAgain = function() {
Runs.save({
url: $scope.result.params.url,
waitForResponse: false
waitForResponse: false,
screenshot: true
}, function(data) {
$location.path('/queue/' + data.runId);
});
+2 -1
View File
@@ -5,7 +5,8 @@ indexCtrl.controller('IndexCtrl', ['$scope', '$location', 'Runs', function($scop
if ($scope.url) {
Runs.save({
url: $scope.url,
waitForResponse: false
waitForResponse: false,
screenshot: true
}, function(data) {
$location.path('/queue/' + data.runId);
});
+2 -1
View File
@@ -31,7 +31,8 @@ ruleCtrl.controller('RuleCtrl', ['$scope', '$rootScope', '$routeParams', '$locat
$scope.testAgain = function() {
Runs.save({
url: $scope.result.params.url,
waitForResponse: false
waitForResponse: false,
screenshot: true
}, function(data) {
$location.path('/queue/' + data.runId);
});
+2 -1
View File
@@ -134,7 +134,8 @@ timelineCtrl.controller('TimelineCtrl', ['$scope', '$rootScope', '$routeParams',
$scope.testAgain = function() {
Runs.save({
url: $scope.result.params.url,
waitForResponse: false
waitForResponse: false,
screenshot: true
}, function(data) {
$location.path('/queue/' + data.runId);
});