From 3bdd99bc1b9abd63e5f5d5d60fb169f02cd2a613 Mon Sep 17 00:00:00 2001 From: Kostya Date: Tue, 30 Jan 2024 23:11:10 +0300 Subject: [PATCH] added if-block for changed icon for system-notification --- luckydiamond/src/components/ChatComponent.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luckydiamond/src/components/ChatComponent.vue b/luckydiamond/src/components/ChatComponent.vue index 9ad4b69..698b09c 100644 --- a/luckydiamond/src/components/ChatComponent.vue +++ b/luckydiamond/src/components/ChatComponent.vue @@ -102,6 +102,10 @@ export default { icon: imageUrl, }; + if (MsgUser.username === '🛠️ System') { + MsgUser.icon = 'https://avatar.spworlds.ru/face/55/CONSOLE' + } + this.array.push(MsgUser); }); this.ScrollToBottom();