mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:07:08 +00:00
Support Markdown-formatted snack messages
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
:color="snackColour"
|
:color="snackColour"
|
||||||
:timeout="6000"
|
:timeout="6000"
|
||||||
>
|
>
|
||||||
{{ snackText }}
|
<div v-html="snackText"></div>
|
||||||
<template v-slot:action="{ attrs }">
|
<template v-slot:action="{ attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
text
|
text
|
||||||
@@ -52,7 +52,7 @@ export default {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
snackText () { return this.$store.state.snack.snackText },
|
snackText () { return this.$root.markdownInline(this.$store.state.snack.snackText) },
|
||||||
snackColour () { return this.$store.state.snack.snackColour },
|
snackColour () { return this.$store.state.snack.snackColour },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user