random colors for messages
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user