summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-02 00:51:20 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-02 00:51:20 +0900
commita26c19cbd2f3e9efbe9155895cd01e803e8c7b59 (patch)
tree017a9fdc1756b28b47647b6a8334906f01bde36f /src/client
parentwip (diff)
downloadsharkey-a26c19cbd2f3e9efbe9155895cd01e803e8c7b59.tar.gz
sharkey-a26c19cbd2f3e9efbe9155895cd01e803e8c7b59.tar.bz2
sharkey-a26c19cbd2f3e9efbe9155895cd01e803e8c7b59.zip
wip
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/desktop/views/components/settings.profile.vue11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/app/desktop/views/components/settings.profile.vue b/src/client/app/desktop/views/components/settings.profile.vue
index 9932cbf7db..0b3a25f389 100644
--- a/src/client/app/desktop/views/components/settings.profile.vue
+++ b/src/client/app/desktop/views/components/settings.profile.vue
@@ -23,7 +23,11 @@
</label>
<button class="ui primary" @click="save">%i18n:@save%</button>
<section>
- <h2>その他</h2>
+ <h2>%i18n:@locked-account%</h2>
+ <mk-switch v-model="$store.state.i.isLocked" @change="onChangeIsLocked" text="%i18n:@is-locked%"/>
+ </section>
+ <section>
+ <h2>%i18n:@other%</h2>
<mk-switch v-model="$store.state.i.isBot" @change="onChangeIsBot" text="%i18n:@is-bot%"/>
<mk-switch v-model="$store.state.i.isCat" @change="onChangeIsCat" text="%i18n:@is-cat%"/>
</section>
@@ -62,6 +66,11 @@ export default Vue.extend({
(this as any).apis.notify('プロフィールを更新しました');
});
},
+ onChangeIsLocked() {
+ (this as any).api('i/update', {
+ isLocked: this.$store.state.i.isLocked
+ });
+ },
onChangeIsBot() {
(this as any).api('i/update', {
isBot: this.$store.state.i.isBot