summaryrefslogtreecommitdiff
path: root/src/web/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-05 08:07:09 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-05 08:07:09 +0900
commitcb0d237b6a70ad118d3511930ef6cb1bca91cd76 (patch)
tree967f723d292f34cd9c04a20710e21403cb672c45 /src/web/app
parent#304 (diff)
downloadsharkey-cb0d237b6a70ad118d3511930ef6cb1bca91cd76.tar.gz
sharkey-cb0d237b6a70ad118d3511930ef6cb1bca91cd76.tar.bz2
sharkey-cb0d237b6a70ad118d3511930ef6cb1bca91cd76.zip
#1183
Diffstat (limited to 'src/web/app')
-rw-r--r--src/web/app/desktop/views/components/settings.vue17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/web/app/desktop/views/components/settings.vue b/src/web/app/desktop/views/components/settings.vue
index a0ffc4e0aa..0eb18770a5 100644
--- a/src/web/app/desktop/views/components/settings.vue
+++ b/src/web/app/desktop/views/components/settings.vue
@@ -62,6 +62,13 @@
</div>
</section>
+ <section class="notification" v-show="page == 'notification'">
+ <h1>通知</h1>
+ <mk-switch v-model="autoWatch" @change="onChangeAutoWatch" text="投稿の自動ウォッチ">
+ <span>リアクションしたり返信したりした投稿に関する通知を自動的に受け取るようにします。</span>
+ </mk-switch>
+ </section>
+
<section class="drive" v-show="page == 'drive'">
<h1>%i18n:desktop.tags.mk-settings.drive%</h1>
<mk-drive-setting/>
@@ -173,6 +180,7 @@ export default Vue.extend({
version,
latestVersion: undefined,
checkingForUpdate: false,
+ autoWatch: true,
enableSounds: localStorage.getItem('enableSounds') == 'true',
lang: localStorage.getItem('lang') || '',
preventUpdate: localStorage.getItem('preventUpdate') == 'true',
@@ -206,12 +214,21 @@ export default Vue.extend({
(this as any).os.getMeta().then(meta => {
this.meta = meta;
});
+
+ if ((this as any).os.i.settings.auto_watch != null) {
+ this.autoWatch = (this as any).os.i.settings.auto_watch;
+ }
},
methods: {
customizeHome() {
this.$router.push('/i/customize-home');
this.$emit('done');
},
+ onChangeAutoWatch(v) {
+ (this as any).api('i/update', {
+ auto_watch: v
+ });
+ },
onChangeShowPostFormOnTopOfTl(v) {
(this as any).api('i/update_client_setting', {
name: 'showPostFormOnTopOfTl',