Show console view in error state for the logs

disable the terminal button accordingly
This commit is contained in:
Girish Ramakrishnan
2019-12-20 15:41:50 -08:00
parent e8bc6e564d
commit da191d62cc
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
if ($scope.view === view) return;
// on error only allow uninstall or repair view
if ($scope.app.error && view !== 'uninstall') view = 'repair';
if ($scope.app.error && !(view === 'uninstall' || view === 'console')) view = 'repair';
$route.updateParams({ view: view });
$scope[view].show();
@@ -1089,7 +1089,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
function switchView() {
// Immediately move to debug view on error
if ($scope.app.error && !($scope.view === 'repair' || $scope.view === 'uninstall')) $scope.setView('repair');
if ($scope.app.error && !($scope.view === 'repair' || $scope.view === 'uninstall' || $scope.view === 'console')) $scope.setView('repair');
if (!$scope.view) $scope.setView($routeParams.view || 'display'); // first time
}