2018-08-29 17:28:43 +02:00
|
|
|
<template>
|
|
|
|
<div id="notification">
|
|
|
|
<h2>{{ $t('preferences.notification.title') }}</h2>
|
|
|
|
<div class="notify">
|
|
|
|
<h3>{{ $t('preferences.notification.notify.title') }}</h3>
|
|
|
|
<table class="notification">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="title">{{ $t('preferences.notification.notify.reply') }}</td>
|
|
|
|
<td class="status">
|
|
|
|
<el-switch
|
2018-08-29 17:56:56 +02:00
|
|
|
v-model="notifyReply"
|
2018-08-29 17:28:43 +02:00
|
|
|
active-color="#13ce66">
|
|
|
|
</el-switch>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="title">{{ $t('preferences.notification.notify.reblog') }}</td>
|
|
|
|
<td class="status">
|
|
|
|
<el-switch
|
2018-08-29 17:56:56 +02:00
|
|
|
v-model="notifyReblog"
|
2018-08-29 17:28:43 +02:00
|
|
|
active-color="#13ce66">
|
|
|
|
</el-switch>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="title">{{ $t('preferences.notification.notify.favourite') }}</td>
|
|
|
|
<td class="status">
|
|
|
|
<el-switch
|
2018-08-29 17:56:56 +02:00
|
|
|
v-model="notifyFavourite"
|
2018-08-29 17:28:43 +02:00
|
|
|
active-color="#13ce66">
|
|
|
|
</el-switch>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="title">{{ $t('preferences.notification.notify.follow') }}</td>
|
|
|
|
<td class="status">
|
|
|
|
<el-switch
|
2018-08-29 17:56:56 +02:00
|
|
|
v-model="notifyFollow"
|
2018-08-29 17:28:43 +02:00
|
|
|
active-color="#13ce66">
|
|
|
|
</el-switch>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2018-08-29 17:56:56 +02:00
|
|
|
name: 'notification',
|
|
|
|
computed: {
|
|
|
|
notifyReply: {
|
|
|
|
get () {
|
|
|
|
return this.$store.state.Preferences.Notification.notification.notify.reply
|
|
|
|
},
|
|
|
|
set (value) {
|
|
|
|
this.$store.dispatch('Preferences/Notification/updateNotify', {
|
|
|
|
reply: value
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
notifyReblog: {
|
|
|
|
get () {
|
|
|
|
return this.$store.state.Preferences.Notification.notification.notify.reblog
|
|
|
|
},
|
|
|
|
set (value) {
|
|
|
|
this.$store.dispatch('Preferences/Notification/updateNotify', {
|
|
|
|
reblog: value
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
notifyFavourite: {
|
|
|
|
get () {
|
|
|
|
return this.$store.state.Preferences.Notification.notification.notify.favourite
|
|
|
|
},
|
|
|
|
set (value) {
|
|
|
|
this.$store.dispatch('Preferences/Notification/updateNotify', {
|
|
|
|
favourite: value
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
notifyFollow: {
|
|
|
|
get () {
|
|
|
|
return this.$store.state.Preferences.Notification.notification.notify.follow
|
|
|
|
},
|
|
|
|
set (value) {
|
|
|
|
this.$store.dispatch('Preferences/Notification/updateNotify', {
|
|
|
|
follow: value
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-08-29 17:28:43 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
#notification {
|
|
|
|
.notify {
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding: 16px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
text-align: right;
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status {
|
|
|
|
width: 50%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|