From bd3f106e05a74c58e5b058dc25326d2ace820382 Mon Sep 17 00:00:00 2001 From: lonetrinity Date: Thu, 19 Jul 2018 11:48:14 +0800 Subject: [PATCH] fix/loading for user done --- resources/assets/js/pages/home.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/pages/home.vue b/resources/assets/js/pages/home.vue index c045ed52..f26fedb5 100644 --- a/resources/assets/js/pages/home.vue +++ b/resources/assets/js/pages/home.vue @@ -235,7 +235,7 @@

- Refresh
+Refresh
@@ -317,7 +317,7 @@ export default { x2_cash: null, x2_cheque: null, }, - loading: false, + loading_btn: false, status: '', booking: { amount: '', @@ -410,10 +410,16 @@ export default { }, RefreshBooking() { let $this = this + this.loading_btn = true axios.get(this.url).then(response => { - this.bookingTable = response.data.data + this.loading_btn = false; + this.bookingTable = response.data + console.log(this.bookingTable) + }) }, + + makePagination(data){ let pagination = { current_page: data.current_page,