Merge pull request #2849 from coreos-inc/fix-recaptcha

quay-require and ng-class don't work well together
This commit is contained in:
josephschorr 2017-08-08 16:47:38 -04:00 committed by GitHub
commit 5c1b635439

View file

@ -28,10 +28,12 @@
match="newUser.password" required match="newUser.password" required
ng-pattern="/^.{8,}$/"> ng-pattern="/^.{8,}$/">
<div class="captcha" quay-require="['RECAPTCHA']" <div quay-require="['RECAPTCHA']">
ng-class="{'expanded': newUser.password == newUser.repeatPassword && newUser.password}"> <div class="captcha"
ng-class="{'expanded': !!(newUser.password == newUser.repeatPassword && newUser.password)}">
<div vc-recaptcha ng-model="newUser.recaptcha_response" key="Config.RECAPTCHA_SITE_KEY"></div> <div vc-recaptcha ng-model="newUser.recaptcha_response" key="Config.RECAPTCHA_SITE_KEY"></div>
</div> </div>
</div>
<button id="signupButton" <button id="signupButton"
class="btn btn-primary btn-block landing-signup-button" ng-disabled="signupForm.$invalid" type="submit" class="btn btn-primary btn-block landing-signup-button" ng-disabled="signupForm.$invalid" type="submit"