Make build package UI a bit nicer and make sure it always executes via a scope apply

This commit is contained in:
Joseph Schorr 2014-07-14 16:33:00 -04:00
parent abe2ffb377
commit 18ec8c0f93
2 changed files with 13 additions and 2 deletions

View file

@ -921,7 +921,11 @@ function BuildPackageCtrl($scope, Restangular, ApiService, DataFileService, $rou
});
};
DataFileService.readDataArrayAsPossibleArchive(uint8array, archiveread, notarchive);
setTimeout(function() {
$scope.$apply(function() {
DataFileService.readDataArrayAsPossibleArchive(uint8array, archiveread, notarchive);
});
}, 0);
};
var downloadBuildPack = function(url) {