fix update order list when new order is created

This commit is contained in:
omair saleh
2020-09-14 17:46:22 +08:00
parent 64c6962316
commit 81076fd5f1
2 changed files with 2 additions and 3 deletions
@@ -253,7 +253,7 @@
</div>
</div>
<div class="col pl-0 pl-md-auto p-r-5">
<list-component key="2" section="addressSection" :endpoint="route('api.order.list', id)">
<list-component key="2" section="orderSection" :endpoint="route('api.order.list', id)">
<template slot="list" slot-scope="{data}">
<order-component :data="data" class="b-b b-grey"></order-component>
</template>
@@ -99,11 +99,10 @@
},
methods:{
submitForm(){
this.submit((this.route('api.order.create')), 'post', 'order.form', true, true)
this.submit((this.route('api.order.create')), 'post', this.section+'.form', true, true)
},
successHandler(){
this.crudSuccess();
EventBus.$emit('updateOrders')
}
}
}