Show console view in error state for the logs
disable the terminal button accordingly
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user