aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-02-11 12:43:13 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-02-11 12:43:13 +0530
commita26ab9f60314420aad1c7d2a328d299f503532fa (patch)
treec71eac7944bde25a0a4ec383ac3fd5030e7ac61a /src/views
parentbc639c89eb5530e7ffeae864ec7fa170e5faccc2 (diff)
removed annoying notifications on HTTP 204
Diffstat (limited to 'src/views')
-rw-r--r--src/views/AllBrands.vue4
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>