File tree 2 files changed +3
-3
lines changed
addon/components/bs-modal
tests/integration/components/bs-modal
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
{{ else }}
6
6
{{ #if @submitTitle }}
7
7
<Button @onClick ={{ @onClose }} >{{ bs-default @closeTitle " Ok" }} </Button >
8
- <Button @type ={{ bs-default @submitButtonType " primary" }} onClick ={{ @onSubmit }} disabled ={{ bs-default @submitDisabled false }} >{{ @submitTitle }} </Button >
8
+ <Button @type ={{ bs-default @submitButtonType " primary" }} @ buttonType = {{ @submitButtonType }} onClick ={{ @onSubmit }} disabled ={{ bs-default @submitDisabled false }} >{{ @submitTitle }} </Button >
9
9
{{ else }}
10
10
<Button @type =" primary" @onClick ={{ @onClose }} >{{ bs-default @closeTitle " Ok" }} </Button >
11
11
{{ /if }}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ module('Integration | Component | bs-modal/footer', function (hooks) {
18
18
assert . strictEqual (
19
19
this . element . querySelector ( '.modal-footer button' ) . getAttribute ( 'type' ) ,
20
20
'button' ,
21
- 'Submit button is of type submit .'
21
+ 'Submit button is of type button .'
22
22
) ;
23
23
assert . dom ( '.modal-footer button' ) . hasText ( 'close' , 'Button title is correct.' ) ;
24
24
} ) ;
@@ -31,7 +31,7 @@ module('Integration | Component | bs-modal/footer', function (hooks) {
31
31
assert . strictEqual (
32
32
this . element . querySelector ( '.modal-footer button:first-child' ) . getAttribute ( 'type' ) ,
33
33
'button' ,
34
- 'Submit button is of type submit .'
34
+ 'Close button is of type button .'
35
35
) ;
36
36
assert . dom ( '.modal-footer button:first-child' ) . hasText ( 'close' , 'Close button title is correct.' ) ;
37
37
assert . dom ( '.modal-footer button:last-child' ) . hasClass ( 'btn-primary' , 'Submit button is a primary button.' ) ;
You can’t perform that action at this time.
0 commit comments