mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 06:48:02 +01:00
random colors for messages
This commit is contained in:
parent
2803f83ffb
commit
37d0f4947e
1 changed files with 2 additions and 1 deletions
|
@ -96,8 +96,9 @@
|
||||||
methods: {
|
methods: {
|
||||||
showNotif: function (userMessage) {
|
showNotif: function (userMessage) {
|
||||||
var colour = colours[Math.floor(Math.random() * colours.length)]
|
var colour = colours[Math.floor(Math.random() * colours.length)]
|
||||||
|
console.log(String(colour))
|
||||||
this.$q.notify({
|
this.$q.notify({
|
||||||
color: colour,
|
color: String(colour),
|
||||||
html: true,
|
html: true,
|
||||||
message: '<h4 style="color: white;">' + userMessage + '</h4>',
|
message: '<h4 style="color: white;">' + userMessage + '</h4>',
|
||||||
position: 'left',
|
position: 'left',
|
||||||
|
|
Loading…
Add table
Reference in a new issue