@subiz/widget-v4 4.0.72 → 4.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ export default class Order extends common.Com {
21
21
  loading: true,
22
22
  order: {},
23
23
  err: {},
24
+ shipping_address: 'new',
24
25
 
25
26
  selectedProvince: null,
26
27
  selectedDistrict: null,
@@ -868,21 +869,16 @@ export default class Order extends common.Com {
868
869
  </div>
869
870
  )
870
871
 
871
-
872
-
873
-
874
872
  if (order.user_confirmation || order.status != 'open') {
875
873
  $status = null
876
874
  if (this.props.cid)
877
- $close = (
878
- <div class='order_btn order__btn__light mt-3' onClick={this.close}>
879
- {this.props.t('close')}
880
- </div>
881
- )
875
+ $close = (
876
+ <div class='order_btn order__btn__light mt-3' onClick={this.close}>
877
+ {this.props.t('close')}
878
+ </div>
879
+ )
882
880
  }
883
881
 
884
-
885
-
886
882
  return (
887
883
  <div class='order' style='height: 100% !important'>
888
884
  <div class='order--content'>
@@ -1132,15 +1128,15 @@ export default class Order extends common.Com {
1132
1128
 
1133
1129
  onCancel = () => {
1134
1130
  if (this.props.onResponse) this.props.onResponse('rejected')
1135
- this.close()
1136
- }
1137
-
1138
- close = () => {
1139
1131
  if (this.props.cid && !this.state.order.user_confirmation) {
1140
1132
  let order = sb.cloneDeep(this.state.order)
1141
1133
  order.user_confirmation = 'rejected'
1142
1134
  this.props.store.updateOrder(order)
1143
1135
  }
1136
+ this.close()
1137
+ }
1138
+
1139
+ close = () => {
1144
1140
  if (this.props.onClose) this.props.onClose()
1145
1141
  }
1146
1142
  }