fixed frozen build logs on web dashboard

This commit is contained in:
Kasra Bigdeli
2018-05-22 18:00:02 -07:00
parent 7cd78a7915
commit 8889f8563b
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -887,9 +887,9 @@ function AppDetailsCtrl($scope,
}
var logInfo = data.data;
$scope.isAppBuilding = logInfo.isAppBuilding;
app.isAppBuilding = logInfo.isAppBuilding;
if ($scope.isAppBuilding) {
if (app.isAppBuilding) {
// forcefully expanding the view such that when building finishes it doesn't collapses automatically
app.expandedLogs = true;
}
+2
View File
@@ -543,9 +543,11 @@ class DockerApi {
stream.on('end', function () {
if (errorMessage) {
buildLogs.log('Push failed...');
reject(errorMessage);
return;
}
buildLogs.log('Push succeeded...');
resolve();
});
@@ -62,9 +62,9 @@ function AppDetailsCtrl($scope,
}
var logInfo = data.data;
$scope.isAppBuilding = logInfo.isAppBuilding;
app.isAppBuilding = logInfo.isAppBuilding;
if ($scope.isAppBuilding) {
if (app.isAppBuilding) {
// forcefully expanding the view such that when building finishes it doesn't collapses automatically
app.expandedLogs = true;
}