Small fix for projects list to update on successful websocket messages

This commit is contained in:
jaredevantabor 2016-11-10 13:10:22 -05:00
parent 30984a3a79
commit 9f7ac059b7

View File

@ -77,8 +77,7 @@ export function ProjectsList($scope, $rootScope, $location, $log, $stateParams,
$log.debug('Received event for project: ' + project.name);
$log.debug('Status changed to: ' + data.status);
if (data.status === 'successful' || data.status === 'failed') {
// @issue: OLD SEARCH
// $scope.search(list.iterator, null, null, null, null, false);
$state.go('.', null, { reload: true });
} else {
project.scm_update_tooltip = "SCM update currently running";
project.scm_type_class = "btn-disabled";