random colors for messages

This commit is contained in:
Ben Arc 2021-04-20 12:36:44 +01:00
parent 2803f83ffb
commit 37d0f4947e

View file

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