File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
projects/angular-rave/src/lib Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export class AngularRaveComponent implements OnInit {
32
32
@Input ( ) redirect_url : string ;
33
33
@Input ( ) custom_logo : string ;
34
34
@Input ( ) meta : any ;
35
+ @Input ( ) autoclose = true ;
35
36
@Input ( ) raveOptions : Partial < PrivateRaveOptions > ;
36
37
@Output ( ) onclose : EventEmitter < void > = new EventEmitter < void > ( ) ;
37
38
@Output ( ) callback : EventEmitter < Object > = new EventEmitter < Object > ( ) ;
@@ -68,7 +69,9 @@ export class AngularRaveComponent implements OnInit {
68
69
if ( this . onclose ) { this . _raveOptions . onclose = ( ) => this . onclose . emit ( ) ; }
69
70
this . _raveOptions . callback = ( res ) => {
70
71
this . onclose . emit ( res ) ;
71
- this . paymentSetup . close ( ) ;
72
+ if ( this . autoclose ) {
73
+ this . paymentSetup . close ( ) ;
74
+ }
72
75
} ;
73
76
}
74
77
You can’t perform that action at this time.
0 commit comments