expose wizard in SetupController

This commit is contained in:
girish@cloudron.io
2016-01-13 18:04:07 -08:00
parent 4e94c8ea56
commit 826f50da7e

View File

@@ -247,6 +247,7 @@ app.controller('FinishController', ['$scope', '$location', 'Wizard', 'Client', f
app.controller('SetupController', ['$scope', '$location', 'Client', 'Wizard', function ($scope, $location, Client, Wizard) {
$scope.initialized = false;
$scope.wizard = Wizard;
// Stupid angular location provider either wants html5 location mode or not, do the query parsing on my own
var search = decodeURIComponent(window.location.search).slice(1).split('&').map(function (item) { return item.split('='); }).reduce(function (o, k) { o[k[0]] = k[1]; return o; }, {});