File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ module.exports = {
15
15
browser : true
16
16
} ,
17
17
rules : {
18
+ 'no-console' : 'off'
18
19
} ,
19
20
overrides : [
20
21
// node files
Original file line number Diff line number Diff line change 1
- import Ember from 'ember' ;
2
1
import Mixin from '@ember/object/mixin' ;
3
2
4
3
export default Mixin . create ( {
4
+
5
5
actions : {
6
+
7
+ onCaptchaRendered ( ) {
8
+ console . info ( 'reCaptcha just rendered' ) ;
9
+ } ,
10
+
6
11
onCaptchaResolved ( reCaptchaResponse ) {
7
12
window . swal (
8
13
'reCaptcha successfully resolved!' ,
9
14
'See reCaptcha response in the console logs' ,
10
15
'success'
11
16
) ;
12
- Ember . Logger . info ( 'reCaptcha response:\n' + reCaptchaResponse ) ;
17
+ console . info ( 'reCaptcha response:\n' + reCaptchaResponse ) ;
13
18
} ,
19
+
14
20
onCaptchaExpired ( ) {
15
21
window . swal ( {
16
22
title : 'reCaptcha response expired!' ,
@@ -19,8 +25,10 @@ export default Mixin.create({
19
25
this . transitionToRoute ( 'index' ) ;
20
26
} ) ;
21
27
} ,
28
+
22
29
forceReset ( ) {
23
30
this . get ( 'gRecaptcha' ) . resetReCaptcha ( ) ;
24
31
}
25
32
}
33
+
26
34
} ) ;
Original file line number Diff line number Diff line change 1
1
<h2 >Google Defaults</h2 >
2
- {{ g-recaptcha onSuccess = (action " onCaptchaResolved" ) ref = (mut gRecaptcha ) }}
2
+ {{ g-recaptcha
3
+ onRender = (action " onCaptchaRendered" )
4
+ onSuccess = (action " onCaptchaResolved" )
5
+ ref = (mut gRecaptcha )
6
+ }}
3
7
<p ><a href =" " {{ action " forceReset" }} >Force reset</a ></p >
You can’t perform that action at this time.
0 commit comments