fixed color messages

This commit is contained in:
Ben Arc 2021-04-20 12:38:50 +01:00
parent 37d0f4947e
commit 6dba793f71

View file

@ -95,10 +95,11 @@
}, },
methods: { methods: {
showNotif: function (userMessage) { showNotif: function (userMessage) {
var colour = colours[Math.floor(Math.random() * colours.length)] var colour = this.colours[
console.log(String(colour)) Math.floor(Math.random() * this.colours.length)
]
this.$q.notify({ this.$q.notify({
color: String(colour), color: colour,
html: true, html: true,
message: '<h4 style="color: white;">' + userMessage + '</h4>', message: '<h4 style="color: white;">' + userMessage + '</h4>',
position: 'left', position: 'left',