debug is now repair

This commit is contained in:
Girish Ramakrishnan
2019-12-16 17:45:40 -08:00
parent 119969634e
commit d175d06b35

View File

@@ -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
}