From 6dba793f716a9bc5b3a2208fb22d9b32e1c5a7a6 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Tue, 20 Apr 2021 12:38:50 +0100 Subject: [PATCH] fixed color messages --- lnbits/extensions/copilot/templates/copilot/compose.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/copilot/templates/copilot/compose.html b/lnbits/extensions/copilot/templates/copilot/compose.html index f50d6622..9177c6b1 100644 --- a/lnbits/extensions/copilot/templates/copilot/compose.html +++ b/lnbits/extensions/copilot/templates/copilot/compose.html @@ -95,10 +95,11 @@ }, methods: { showNotif: function (userMessage) { - var colour = colours[Math.floor(Math.random() * colours.length)] - console.log(String(colour)) + var colour = this.colours[ + Math.floor(Math.random() * this.colours.length) + ] this.$q.notify({ - color: String(colour), + color: colour, html: true, message: '

' + userMessage + '

', position: 'left',