recurrent events only if allowed

This commit is contained in:
les
2019-09-12 11:59:30 +02:00
parent d05ced94ca
commit dec8e4091a
4 changed files with 6 additions and 10 deletions

View File

@@ -17,7 +17,7 @@
ul.tags(v-if='showTags && event.tags')
li(v-for='tag in event.tags' :key='tag') {{tag}}
li(v-if='event.comments && event.comments.length') <u>{{$tc('common.comments', event.comments.length)}}</u>
li(v-if='settings.enable_federation && event.comments && event.comments.length') <u>{{$tc('common.comments', event.comments.length)}}</u>
</template>
<script>
import { mapState, mapActions } from 'vuex'
@@ -35,6 +35,7 @@ export default {
}
},
computed: {
...mapState(['settings']),
date () {
return new Date(this.event.start_datetime).getDate()
},