From 2d2733a15dfab40160e813facd2b0020ff1554cf Mon Sep 17 00:00:00 2001 From: Erialos Date: Fri, 7 Oct 2022 08:25:38 -0600 Subject: [PATCH] Feature update - Add Discord option to dashboard This feature add's the discord chat link if one exists inside the `chat_url`. I filter and search for a link containing `discord`. Then if matching, displays the link. --- .../components/dashboard/DashboardPriceChart2.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/components/dashboard/DashboardPriceChart2.vue b/src/views/components/dashboard/DashboardPriceChart2.vue index fd626652..01bbe3e2 100644 --- a/src/views/components/dashboard/DashboardPriceChart2.vue +++ b/src/views/components/dashboard/DashboardPriceChart2.vue @@ -176,6 +176,14 @@ > Github + + Discord + x.includes('discord')) + if (discordLink) { + return discordLink ? `${discordLink}` : '#' + } + return '#' + }, telegram() { if (this.coinInfo.links) { return this.coinInfo.links.telegram_channel_identifier ? `https://t.me/${this.coinInfo.links.telegram_channel_identifier}` : '#'