git ssb

3+

dangerousbeans / scuttle-vue



Commit 8f6cde9a147df8d5000afd84a4653031fe7f06ee

safer name handling

Joran committed on 11/11/2017, 1:41:05 AM
Parent: 45aa93783fbfd44f185054eb5340ee620fc678a2

Files changed

src/components/Message.vuechanged
src/components/Message.vueView
@@ -1,10 +1,10 @@
11
22 <template>
33 <div class="media">
4- <img class="d-flex mr-3" :alt="author.name()">
4 + <img class="d-flex mr-3" :alt="author">
55 <div class="media-body">
6- <h5 class="mt-0">{{ author.name() }}</h5>
6 + <h5 class="mt-0">{{ author }}</h5>
77 {{ message.value.content.text() }}
88
99 <p>
1010 {{ message.value.content.type() }}
@@ -29,9 +29,9 @@
2929 }
3030 },
3131 methods: {
3232 setAuthor(err, a){
33- this.author = nn(a[0])
33 + this.author = nn(a[0]).name()
3434 }
3535 },
3636 created() {
3737 this.$depject_api.signifier[0](this.message.value.author(), this.setAuthor)

Built with git-ssb-web