Only allow debug and uninstall views on app error
This commit is contained in:
@@ -66,6 +66,9 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
$scope.setView = function (view) {
|
||||
if ($scope.view === view) return;
|
||||
|
||||
// on error only allow uninstall or debug view
|
||||
if ($scope.app.error && view !== 'uninstall') view = 'debug';
|
||||
|
||||
$route.updateParams({ view: view });
|
||||
$scope[view].show();
|
||||
$scope.view = view;
|
||||
@@ -889,6 +892,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
|
||||
$scope.app = app;
|
||||
|
||||
console.log(app.installationState, app.error);
|
||||
|
||||
$scope.setView($routeParams.view || 'display');
|
||||
|
||||
// track on page load backup if active
|
||||
|
||||
Reference in New Issue
Block a user