aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-10-23 14:32:49 -0700
committerGitHub <noreply@github.com>2020-10-23 14:32:49 -0700
commit00b069fc6f8e2af18bc3ac9af8904fa924ce757c (patch)
tree9b29faa5dd9e5c50455ce939fbfdf587a3456461 /src
parentab8136bab7dcf0982f49b9db2ca956bc01860851 (diff)
parent0e045b4c55042c1b2e97c3c7b005f83f96106841 (diff)
downloadhomer-00b069fc6f8e2af18bc3ac9af8904fa924ce757c.tar.gz
homer-00b069fc6f8e2af18bc3ac9af8904fa924ce757c.tar.zst
homer-00b069fc6f8e2af18bc3ac9af8904fa924ce757c.zip
Merge pull request #136 from gabe565/message-icon
Add support for a message icon
Diffstat (limited to 'src')
-rw-r--r--src/components/Message.vue7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/Message.vue b/src/components/Message.vue
index d007d3e..5a1e0ea 100644
--- a/src/components/Message.vue
+++ b/src/components/Message.vue
@@ -1,7 +1,10 @@
1<template> 1<template>
2 <article v-if="show" class="message" :class="message.style"> 2 <article v-if="show" class="message" :class="message.style">
3 <div v-if="message.title" class="message-header"> 3 <div v-if="message.title || message.icon" class="message-header">
4 <p>{{ message.title }}</p> 4 <p>
5 <i v-if="message.icon" :class="`fa-fw ${message.icon}`"></i>
6 {{ message.title }}
7 </p>
5 </div> 8 </div>
6 <div 9 <div
7 v-if="message.content" 10 v-if="message.content"