From ab42c710eb2c039b1d9a6e682cb1c43aa309a16e Mon Sep 17 00:00:00 2001 From: Haokun-Chen Date: Thu, 7 Jun 2018 15:58:04 -0400 Subject: [PATCH] validate form when toggle replace/revert on password/secret --- awx/ui/client/lib/components/input/base.controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/ui/client/lib/components/input/base.controller.js b/awx/ui/client/lib/components/input/base.controller.js index 32fa30b458..64ebbcd280 100644 --- a/awx/ui/client/lib/components/input/base.controller.js +++ b/awx/ui/client/lib/components/input/base.controller.js @@ -94,6 +94,7 @@ function BaseInputController (strings) { scope.state._value = scope.state._preEditValue; scope.state._activeModel = '_displayValue'; scope.state._placeholder = vm.strings.get('ENCRYPTED'); + vm.check(); } else { scope.state._buttonText = vm.strings.get('REVERT'); scope.state._disabled = false; @@ -101,6 +102,7 @@ function BaseInputController (strings) { scope.state._activeModel = '_value'; scope.state._value = ''; scope.state._placeholder = ''; + vm.check(); } };