diff options
Diffstat (limited to 'src/views/AllBrands.vue')
-rw-r--r-- | src/views/AllBrands.vue | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/views/AllBrands.vue b/src/views/AllBrands.vue index ad456cd..be1e122 100644 --- a/src/views/AllBrands.vue +++ b/src/views/AllBrands.vue @@ -21,8 +21,6 @@ const getAllBrands = async () => { const res = await axios.get('/brand') if (res.status === 200) { allBrands.value = res.data.data - } else if (res.status === 204) { - toast.warning('No records found') } } catch (err) { toast.error('An unhandled exception occoured. Please check logs') @@ -39,5 +37,5 @@ onMounted(() => { <template> <newBrand @added="getAllBrands()" /> - <brandsTable :brands="allBrands" @refresh="getAllBrands()" /> + <brandsTable :isLoading="isLoading" :brands="allBrands" @refresh="getAllBrands()" /> </template> |