From ca0d9602fccf33cd881eb18084e63a38b321c2f4 Mon Sep 17 00:00:00 2001 From: Alexander Zagaynov Date: Thu, 5 Sep 2019 17:31:35 +0200 Subject: [PATCH] fix still disabled button issue --- .../controllers/ems_common/ems_common_form_controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/controllers/ems_common/ems_common_form_controller.js b/app/assets/javascripts/controllers/ems_common/ems_common_form_controller.js index 19910a57cabb..932dfc39d6de 100644 --- a/app/assets/javascripts/controllers/ems_common/ems_common_form_controller.js +++ b/app/assets/javascripts/controllers/ems_common/ems_common_form_controller.js @@ -739,6 +739,8 @@ ManageIQ.angular.app.controller('emsCommonFormController', ['$http', '$scope', ' $scope.updateAuthStatus = function(updatedValue) { $scope.angularForm[$scope.currentTab + '_auth_status'].$setViewValue(updatedValue); + $scope.angularForm.$valid = updatedValue; + $scope.angularForm.$invalid = !updatedValue; }; $scope.updateHostname = function(value) {