From a26ab9f60314420aad1c7d2a328d299f503532fa Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 11 Feb 2024 12:43:13 +0530 Subject: removed annoying notifications on HTTP 204 --- src/components/customers_table.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/components/customers_table.vue') diff --git a/src/components/customers_table.vue b/src/components/customers_table.vue index 163c6b1..3632291 100644 --- a/src/components/customers_table.vue +++ b/src/components/customers_table.vue @@ -19,8 +19,6 @@ const getAllCustomers = async () => { const res = await axios.get('/customer') if (res.status === 200) { allCustomers.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') @@ -56,6 +54,10 @@ onMounted(() => { +
+

No customers added! Add new.

+
+ -- cgit v1.2.3