Redirect the browser to /setup.html in non caas mode

This commit is contained in:
Johannes Zellner
2015-12-29 10:54:00 +01:00
parent 8b1d3e5fba
commit 9e391941c5

View File

@@ -23,8 +23,12 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
Client.logout();
};
$scope.setup = function () {
window.location.href = '/error.html?errorCode=1';
$scope.setup = function (provider) {
if (provider === 'caas') {
window.location.href = '/error.html?errorCode=1';
} else {
window.location.href = '/setup.html';
}
};
$scope.error = function (error) {