Support Markdown-formatted snack messages

This commit is contained in:
D. Berge
2025-08-06 11:01:10 +02:00
parent 447003c3b5
commit 12369d5419

View File

@@ -9,7 +9,7 @@
:color="snackColour"
:timeout="6000"
>
{{ snackText }}
<div v-html="snackText"></div>
<template v-slot:action="{ attrs }">
<v-btn
text
@@ -52,7 +52,7 @@ export default {
}),
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 },
},