Handle hostname changes in the config panel

Fixes #436
This commit is contained in:
Joseph Schorr 2015-09-02 17:21:38 -04:00
parent 0a91a1d9d8
commit f6cca81178
6 changed files with 31 additions and 22 deletions

View file

@ -30,12 +30,14 @@
$scope.logsScrolled = false;
$scope.csrf_token = encodeURIComponent(window.__token);
$scope.dashboardActive = false;
$scope.currentConfig = null;
$scope.setDashboardActive = function(active) {
$scope.dashboardActive = active;
};
$scope.configurationSaved = function() {
$scope.configurationSaved = function(config) {
$scope.currentConfig = config;
$scope.requiresRestart = true;
};
@ -321,6 +323,7 @@
$scope.requiresRestart = resp['requires_restart'];
if ($scope.configStatus == 'ready') {
$scope.currentConfig = null;
$scope.loadUsers();
} else {
var message = "Installation of this product has not yet been completed." +
@ -331,7 +334,7 @@
var title = "Installation Incomplete";
CoreDialog.fatal(title, message);
}
});
}, $scope.currentConfig);
};
// Load the initial status.