File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view/cart Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 2
2
* Copyright © 2015 Magento. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
- /*global define*/
6
5
define (
7
6
[
8
7
'uiComponent' ,
9
- 'Magento_Checkout/js/model/totals'
8
+ 'Magento_Checkout/js/model/totals' ,
9
+ 'Magento_Checkout/js/model/shipping-service'
10
10
] ,
11
- function ( Component , totalsService ) {
11
+ function ( Component , totalsService , shippingService ) {
12
12
'use strict' ;
13
13
14
14
return Component . extend ( {
15
15
16
- isLoading : totalsService . isLoading
16
+ isLoading : totalsService . isLoading ,
17
+
18
+ /**
19
+ * @override
20
+ */
21
+ initialize : function ( ) {
22
+ this . _super ( ) ;
23
+ totalsService . totals . subscribe ( function ( ) {
24
+ window . dispatchEvent ( new Event ( 'resize' ) ) ;
25
+ } ) ;
26
+ shippingService . getShippingRates ( ) . subscribe ( function ( ) {
27
+ window . dispatchEvent ( new Event ( 'resize' ) ) ;
28
+ } ) ;
29
+ }
17
30
} ) ;
18
31
}
19
32
) ;
You can’t perform that action at this time.
0 commit comments