Stop making rest calls for project sync updates on projects list

This commit is contained in:
mabashian 2020-02-20 16:54:51 -05:00 committed by Rebeccah
parent 98f5525d28
commit 179c62e2f3

View File

@ -113,9 +113,7 @@ function projectsListController (
// 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' || data.status === 'canceled') {
reloadList();
} else {
if (!(data.status === 'successful' || data.status === 'failed' || data.status === 'canceled')) {
project.scm_update_tooltip = vm.strings.get('update.UPDATE_RUNNING');
}
project.status = data.status;