From 34347b7c3153d35ac16c2540b35179ad2f6e5239 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 2 Oct 2015 15:16:55 +0200 Subject: State now in selected.state (Idle - In progress) --- js/main.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 544e7fa..016332a 100644 --- a/js/main.js +++ b/js/main.js @@ -152,6 +152,12 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) } else { $scope.selected = step; } + if ($scope.selected.data.state === "building") { + $scope.selected.state = "In progress"; + } + else { + $scope.selected.state = "Idle"; + } }; function cancelRefresh() { -- cgit v1.2.1