summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-14 20:11:01 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-14 20:11:01 +0900
commit3220d69a6930151f33928b5d789150aacc4bc382 (patch)
tree3687ed4e67dfd5f6585867dae21b306b7cc6cfd5 /src/client/app/desktop/views/components
parent8.38.0 (diff)
downloadmisskey-3220d69a6930151f33928b5d789150aacc4bc382.tar.gz
misskey-3220d69a6930151f33928b5d789150aacc4bc382.tar.bz2
misskey-3220d69a6930151f33928b5d789150aacc4bc382.zip
常にメディアを閲覧注意として投稿するオプションを実装
Diffstat (limited to 'src/client/app/desktop/views/components')
-rw-r--r--src/client/app/desktop/views/components/settings.profile.vue7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/app/desktop/views/components/settings.profile.vue b/src/client/app/desktop/views/components/settings.profile.vue
index 262583b640..0f53941b31 100644
--- a/src/client/app/desktop/views/components/settings.profile.vue
+++ b/src/client/app/desktop/views/components/settings.profile.vue
@@ -30,6 +30,7 @@
<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%"/>
+ <mk-switch v-model="alwaysMarkNsfw" text="%i18n:common.always-mark-nsfw%"/>
</section>
</div>
</template>
@@ -46,6 +47,12 @@ export default Vue.extend({
birthday: null,
};
},
+ computed: {
+ alwaysMarkNsfw: {
+ get() { return this.$store.state.i.settings.alwaysMarkNsfw; },
+ set(value) { (this as any).api('i/update', { alwaysMarkNsfw: value }); }
+ },
+ },
created() {
this.name = this.$store.state.i.name || '';
this.location = this.$store.state.i.profile.location;