2018-03-12 14:35:31 +01:00
|
|
|
<template>
|
|
|
|
<div id="notification">
|
2018-07-09 17:57:34 +02:00
|
|
|
<favourite v-if="message.type === 'favourite'" :message="message" :filter="filter"></favourite>
|
2018-07-09 17:50:20 +02:00
|
|
|
<follow v-else-if="message.type === 'follow'" :message="message"></follow>
|
|
|
|
<mention v-else-if="message.type === 'mention'" :message="message" :filter="filter"></mention>
|
2018-07-10 01:24:32 +02:00
|
|
|
<reblog v-else-if="message.type == 'reblog'" :message="message" :filter="filter"></reblog>
|
2018-03-12 14:35:31 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Favourite from './Notification/Favourite'
|
|
|
|
import Follow from './Notification/Follow'
|
|
|
|
import Mention from './Notification/Mention'
|
|
|
|
import Reblog from './Notification/Reblog'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'notification',
|
2018-07-09 17:50:20 +02:00
|
|
|
props: {
|
|
|
|
message: {
|
|
|
|
type: Object,
|
|
|
|
default: {}
|
|
|
|
},
|
|
|
|
filter: {
|
|
|
|
type: String,
|
|
|
|
default: ''
|
|
|
|
}
|
|
|
|
},
|
2018-03-12 14:35:31 +01:00
|
|
|
components: { Favourite, Follow, Mention, Reblog }
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|