From 486bfdf9c1977662400f95101b40b9ca44bffc7b Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Thu, 2 Mar 2023 18:06:24 +0300 Subject: [PATCH] =?UTF-8?q?[WIP]=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D1=83=D1=8E=20=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=83=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=20=D0=BA=D0=BB=D0=B8=D0=BA=D0=B5=20=D0=BD=D0=B0=20=D0=B8=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D0=BA=D1=83,=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D1=83=20=D1=83?= =?UTF-8?q?=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BE=D0=B1=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B5,=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20=D1=81=D1=82=D0=B8?= =?UTF-8?q?=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/error.svg | 10 ++++++++++ .../Notifications/NotificationItem.vue | 17 ++++++++++++++++- src/components/TheHeader.vue | 9 ++++++++- src/components/TheSidebar.vue | 3 +++ src/components/base/BaseClientFormCreate.vue | 2 +- 5 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 src/assets/icons/error.svg diff --git a/src/assets/icons/error.svg b/src/assets/icons/error.svg new file mode 100644 index 0000000..70f1299 --- /dev/null +++ b/src/assets/icons/error.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/components/Notifications/NotificationItem.vue b/src/components/Notifications/NotificationItem.vue index c471d05..93be2b6 100644 --- a/src/components/Notifications/NotificationItem.vue +++ b/src/components/Notifications/NotificationItem.vue @@ -2,7 +2,12 @@ .notification-container.flex.justify-between(:style="{ backgroundColor: bgColor }") .notification-content.flex.mr-16 .grid(:class="{'grid-rows': message}") - .text-white.text-xs.icon.row-span-full.flex.justify-center.items-center(:class="iconClass") + .text-white.text-xs.icon.row-span-full.flex.justify-center.items-center( + v-if="this.type !== 'error'", + :class="iconClass" + ) + .error.text-xs.row-span-full.flex.justify-center.items-center(v-else) + img(:src="errorIcon") .text-white.text-base.font-black(v-if="title") {{ title }} .text-white.text-base.font-semibold(v-if="message") {{ message }} .icon-cancel.cursor-pointer.text-white.opacity-50.text-sm(class="hover:opacity-100 active:opacity-75", @click="delNotification") @@ -10,6 +15,7 @@