quay-require and ng-class don't work well together

Fixes captcha display
This commit is contained in:
Joseph Schorr 2017-08-07 00:06:45 -04:00
parent 0359ac8753
commit c85942b15c

View file

@ -28,9 +28,11 @@
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"
<div vc-recaptcha ng-model="newUser.recaptcha_response" key="Config.RECAPTCHA_SITE_KEY"></div> ng-class="{'expanded': !!(newUser.password == newUser.repeatPassword && newUser.password)}">
<div vc-recaptcha ng-model="newUser.recaptcha_response" key="Config.RECAPTCHA_SITE_KEY"></div>
</div>
</div> </div>
<button id="signupButton" <button id="signupButton"