From 73f48b71a286866d3a7316d15a79009f08778bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 8 Jan 2015 11:02:36 +0100 Subject: [PATCH] Error message if the result is not found --- front/src/js/controllers/dashboardCtrl.js | 2 +- front/src/views/dashboard.html | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/front/src/js/controllers/dashboardCtrl.js b/front/src/js/controllers/dashboardCtrl.js index 64a76fd..c1b2ba1 100644 --- a/front/src/js/controllers/dashboardCtrl.js +++ b/front/src/js/controllers/dashboardCtrl.js @@ -13,7 +13,7 @@ dashboardCtrl.controller('DashboardCtrl', ['$scope', '$rootScope', '$routeParams $scope.result = result; init(); }, function(err) { - alert('aie'); + $scope.error = true; }); } else { $scope.result = $rootScope.loadedResult; diff --git a/front/src/views/dashboard.html b/front/src/views/dashboard.html index 41a72ac..0fba7bc 100644 --- a/front/src/views/dashboard.html +++ b/front/src/views/dashboard.html @@ -1,16 +1,16 @@
-

Global score

+

Global score

{{globalScore}}/100
-

Score details

-
+

Score details

+
{{category.label}}
@@ -38,11 +38,11 @@
-
+
Did you know? Yellow Lab Tools now has an API! Here is the JSON output for this run. Checkout the API doc.
-
+
@@ -50,9 +50,13 @@
-
+

Yellow Lab Tools is a free online tool that analyzes performance and front-end quality.

See the full report for this page Test another webpage
+ +
+

Run failed / Run not found

+
\ No newline at end of file