diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-04 09:39:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-04 09:39:25 +0900 |
| commit | d7c94de07e17e31513780ceabf824a3d0760ff80 (patch) | |
| tree | 890e64439127e0f118a6a0e041c7f14ee2f9b891 /src/web/app/desktop/views/components/settings.vue | |
| parent | :art: (diff) | |
| download | sharkey-d7c94de07e17e31513780ceabf824a3d0760ff80.tar.gz sharkey-d7c94de07e17e31513780ceabf824a3d0760ff80.tar.bz2 sharkey-d7c94de07e17e31513780ceabf824a3d0760ff80.zip | |
#172
Diffstat (limited to 'src/web/app/desktop/views/components/settings.vue')
| -rw-r--r-- | src/web/app/desktop/views/components/settings.vue | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/web/app/desktop/views/components/settings.vue b/src/web/app/desktop/views/components/settings.vue index 182a9a1d5e..20d7a77715 100644 --- a/src/web/app/desktop/views/components/settings.vue +++ b/src/web/app/desktop/views/components/settings.vue @@ -27,6 +27,11 @@ </section> <section class="web" v-show="page == 'web'"> + <h1>モバイル</h1> + <mk-switch v-model="os.i.client_settings.disableViaMobile" @change="onChangeDisableViaMobile" text="モバイルからの投稿とフラグを付けない"/> + </section> + + <section class="web" v-show="page == 'web'"> <h1>言語</h1> <el-select v-model="lang" placeholder="言語を選択"> <el-option-group label="推奨"> @@ -192,6 +197,12 @@ export default Vue.extend({ value: v }); }, + onChangeDisableViaMobile(v) { + (this as any).api('i/update_client_setting', { + name: 'disableViaMobile', + value: v + }); + }, checkForUpdate() { this.checkingForUpdate = true; checkForUpdate((this as any).os, true, true).then(newer => { |