Check if dns flag is in some intermediate state

This commit is contained in:
Girish Ramakrishnan
2017-04-26 12:36:33 -07:00
parent 608cc1e036
commit 287b96925a

View File

@@ -76,8 +76,8 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
var actionScope;
// warn user if dns config is not working
if (!$scope.status.webadminStatus.dns) {
// warn user if dns config is not working (the 'configuring' flag detects if configureWebadmin is 'active')
if (!$scope.status.webadminStatus.configuring && !$scope.status.webadminStatus.dns) {
actionScope = $scope.$new(true);
actionScope.action = '/#/certs';
Client.notify('Invalid Domain Config', 'Unable to update DNS. Click here to update it.', true, 'error', actionScope);