summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/views/components/settings.profile.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/desktop/views/components/settings.profile.vue')
-rw-r--r--src/web/app/desktop/views/components/settings.profile.vue9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/web/app/desktop/views/components/settings.profile.vue b/src/web/app/desktop/views/components/settings.profile.vue
index 97a382d798..218da67e81 100644
--- a/src/web/app/desktop/views/components/settings.profile.vue
+++ b/src/web/app/desktop/views/components/settings.profile.vue
@@ -22,6 +22,10 @@
<input v-model="birthday" type="date" class="ui"/>
</label>
<button class="ui primary" @click="save">%i18n:desktop.tags.mk-profile-setting.save%</button>
+ <section>
+ <h2>その他</h2>
+ <el-switch v-model="os.i.is_bot" @change="onChangeIsBot" active-text="このアカウントはbotです"/>
+ </section>
</div>
</template>
@@ -56,6 +60,11 @@ export default Vue.extend({
}).then(() => {
(this as any).apis.notify('プロフィールを更新しました');
});
+ },
+ onChangeIsBot() {
+ (this as any).api('i/update', {
+ is_bot: (this as any).os.i.is_bot
+ });
}
}
});