From 020439619b8633943ad529d5e5b1c381e257e999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sun, 31 Oct 2021 20:07:44 +0300 Subject: [PATCH] Customer can login error message.. --- resources/assets/js/views/sales/customers.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/assets/js/views/sales/customers.js b/resources/assets/js/views/sales/customers.js index 9f3c87ed4..bc914d1d6 100644 --- a/resources/assets/js/views/sales/customers.js +++ b/resources/assets/js/views/sales/customers.js @@ -63,6 +63,17 @@ const app = new Vue({ return true; } + if (response.data.error) { + this.$notify({ + message: response.data.message, + timeout: 0, + icon: 'fas fa-bell', + type: 'warning', + }); + + return false; + } + if (response.data.success) { this.form.errors.set('email', { 0: can_login_errors.email