Reload the project list when we get a canceled socket message

This commit is contained in:
mabashian 2017-08-30 16:49:45 -04:00
parent 5501d42de0
commit e0a10fb9d6

View File

@ -112,7 +112,7 @@ export default ['$scope', '$rootScope', '$log', 'Rest', 'Alert',
// And we found the affected project
$log.debug('Received event for project: ' + project.name);
$log.debug('Status changed to: ' + data.status);
if (data.status === 'successful' || data.status === 'failed') {
if (data.status === 'successful' || data.status === 'failed' || data.status === 'canceled') {
$scope.reloadList();
} else {
project.scm_update_tooltip = "SCM update currently running";