debug is now repair
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 debug view
|
||||
if ($scope.app.error && view !== 'uninstall') view = 'debug';
|
||||
if ($scope.app.error && view !== 'uninstall') view = 'repair';
|
||||
|
||||
$route.updateParams({ view: view });
|
||||
$scope[view].show();
|
||||
@@ -1036,7 +1036,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
|
||||
function switchView() {
|
||||
// Immediately move to debug view on error
|
||||
if ($scope.app.error && !($scope.view === 'debug' || $scope.view === 'uninstall')) $scope.setView('debug');
|
||||
if ($scope.app.error && !($scope.view === 'repair' || $scope.view === 'uninstall')) $scope.setView('repair');
|
||||
|
||||
if (!$scope.view) $scope.setView($routeParams.view || 'display'); // first time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user