Fixes some lint warnings/errors.

Signed-off-by: Cyrille Bollu <cyrille@bollu.be>
pull/626/head
Cyrille Bollu 2019-07-15 15:13:35 +02:00
rodzic d025569f5e
commit 4ae052c6a0
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
<template>
<div class="post-attachment">
<img ref='image' src='' />
<img ref="image" src="" />
</div>
</template>
@ -10,7 +10,9 @@ export default {
components: {
},
mixins: [],
props: ['id'],
props: {
id: String,
},
data() {
return {
}

Wyświetl plik

@ -25,7 +25,7 @@
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="post-message" v-html="formatedMessage" />
<div v-if="hasAttachments" class="post-attachments">
<post-attachment v-for="attachment in item.attachment" :key="attachment.id" :id="attachment.id" />
<post-attachment v-for="attachment in item.attachment" :id="attachment.id" :key="attachment.id" />
</div>
<div v-click-outside="hidePopoverMenu" class="post-actions">
<a v-tooltip.bottom="t('social', 'Reply')" class="icon-reply" @click.prevent="reply" />
@ -124,7 +124,7 @@ export default {
return OC.generateUrl('/apps/social/api/v1/global/actor/avatar?id=' + this.item.attributedTo)
},
hasAttachments() {
return (typeof this.item.attachment === 'undefined') ? false : true;
return (typeof this.item.attachment !== 'undefined')
},
isBoosted() {
if (typeof this.item.action === 'undefined') {