2020-10-17 06:12:00 -05:00
|
|
|
<template>
|
2021-11-28 05:07:37 -06:00
|
|
|
<div class="_formRoot">
|
|
|
|
<FormSwitch v-model="isLocked" class="_formBlock" @update:modelValue="save()">{{ $ts.makeFollowManuallyApprove }}<template #caption>{{ $ts.lockedAccountInfo }}</template></FormSwitch>
|
|
|
|
<FormSwitch v-if="isLocked" v-model="autoAcceptFollowed" class="_formBlock" @update:modelValue="save()">{{ $ts.autoAcceptFollowed }}</FormSwitch>
|
|
|
|
|
|
|
|
<FormSwitch v-model="publicReactions" class="_formBlock" @update:modelValue="save()">
|
2021-10-17 11:16:59 -05:00
|
|
|
{{ $ts.makeReactionsPublic }}
|
2021-11-28 05:07:37 -06:00
|
|
|
<template #caption>{{ $ts.makeReactionsPublicDescription }}</template>
|
2021-10-17 11:16:59 -05:00
|
|
|
</FormSwitch>
|
2021-11-28 05:07:37 -06:00
|
|
|
|
|
|
|
<FormSelect v-model="ffVisibility" class="_formBlock">
|
2021-11-07 03:04:32 -06:00
|
|
|
<template #label>{{ $ts.ffVisibility }}</template>
|
2021-11-28 05:07:37 -06:00
|
|
|
<option value="public">{{ $ts._ffVisibility.public }}</option>
|
|
|
|
<option value="followers">{{ $ts._ffVisibility.followers }}</option>
|
|
|
|
<option value="private">{{ $ts._ffVisibility.private }}</option>
|
2021-11-07 03:04:32 -06:00
|
|
|
<template #caption>{{ $ts.ffVisibilityDescription }}</template>
|
2021-11-28 05:07:37 -06:00
|
|
|
</FormSelect>
|
|
|
|
|
|
|
|
<FormSwitch v-model="hideOnlineStatus" class="_formBlock" @update:modelValue="save()">
|
2021-04-17 01:30:26 -05:00
|
|
|
{{ $ts.hideOnlineStatus }}
|
2021-11-28 05:07:37 -06:00
|
|
|
<template #caption>{{ $ts.hideOnlineStatusDescription }}</template>
|
2021-04-17 01:30:26 -05:00
|
|
|
</FormSwitch>
|
2021-11-28 05:07:37 -06:00
|
|
|
<FormSwitch v-model="noCrawle" class="_formBlock" @update:modelValue="save()">
|
2020-12-25 19:47:36 -06:00
|
|
|
{{ $ts.noCrawle }}
|
2021-11-28 05:07:37 -06:00
|
|
|
<template #caption>{{ $ts.noCrawleDescription }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
</FormSwitch>
|
2021-11-28 05:07:37 -06:00
|
|
|
<FormSwitch v-model="isExplorable" class="_formBlock" @update:modelValue="save()">
|
2020-12-25 19:47:36 -06:00
|
|
|
{{ $ts.makeExplorable }}
|
2021-11-28 05:07:37 -06:00
|
|
|
<template #caption>{{ $ts.makeExplorableDescription }}</template>
|
2020-12-11 06:16:20 -06:00
|
|
|
</FormSwitch>
|
2021-11-28 05:07:37 -06:00
|
|
|
|
|
|
|
<FormSection>
|
|
|
|
<FormSwitch v-model="rememberNoteVisibility" class="_formBlock" @update:modelValue="save()">{{ $ts.rememberNoteVisibility }}</FormSwitch>
|
|
|
|
<FormGroup v-if="!rememberNoteVisibility" class="_formBlock">
|
|
|
|
<template #label>{{ $ts.defaultNoteVisibility }}</template>
|
|
|
|
<FormSelect v-model="defaultNoteVisibility" class="_formBlock">
|
|
|
|
<option value="public">{{ $ts._visibility.public }}</option>
|
|
|
|
<option value="home">{{ $ts._visibility.home }}</option>
|
|
|
|
<option value="followers">{{ $ts._visibility.followers }}</option>
|
|
|
|
<option value="specified">{{ $ts._visibility.specified }}</option>
|
|
|
|
</FormSelect>
|
|
|
|
<FormSwitch v-model="defaultNoteLocalOnly" class="_formBlock">{{ $ts._visibility.localOnly }}</FormSwitch>
|
|
|
|
</FormGroup>
|
|
|
|
</FormSection>
|
|
|
|
|
|
|
|
<FormSwitch v-model="keepCw" class="_formBlock" @update:modelValue="save()">{{ $ts.keepCw }}</FormSwitch>
|
|
|
|
</div>
|
2020-10-17 06:12:00 -05:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
2021-11-28 05:07:37 -06:00
|
|
|
import FormSwitch from '@/components/form/switch.vue';
|
|
|
|
import FormSelect from '@/components/form/select.vue';
|
|
|
|
import FormSection from '@/components/form/section.vue';
|
|
|
|
import FormGroup from '@/components/form/group.vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import * as os from '@/os';
|
|
|
|
import { defaultStore } from '@/store';
|
|
|
|
import * as symbols from '@/symbols';
|
2020-10-17 06:12:00 -05:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
2020-11-25 06:31:34 -06:00
|
|
|
FormSelect,
|
2021-11-28 05:07:37 -06:00
|
|
|
FormSection,
|
2020-11-25 06:31:34 -06:00
|
|
|
FormGroup,
|
|
|
|
FormSwitch,
|
2020-10-17 06:12:00 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
emits: ['info'],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
2021-04-09 22:54:12 -05:00
|
|
|
[symbols.PAGE_INFO]: {
|
2020-12-25 19:47:36 -06:00
|
|
|
title: this.$ts.privacy,
|
2021-09-29 10:50:45 -05:00
|
|
|
icon: 'fas fa-lock-open',
|
|
|
|
bg: 'var(--bg)',
|
2020-10-17 06:12:00 -05:00
|
|
|
},
|
|
|
|
isLocked: false,
|
|
|
|
autoAcceptFollowed: false,
|
2020-11-25 06:31:34 -06:00
|
|
|
noCrawle: false,
|
2020-12-11 06:16:20 -06:00
|
|
|
isExplorable: false,
|
2021-04-17 01:30:26 -05:00
|
|
|
hideOnlineStatus: false,
|
2021-10-17 11:16:59 -05:00
|
|
|
publicReactions: false,
|
2021-11-07 03:04:32 -06:00
|
|
|
ffVisibility: 'public',
|
2020-10-17 06:12:00 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
2020-12-18 19:55:52 -06:00
|
|
|
defaultNoteVisibility: defaultStore.makeGetterSetter('defaultNoteVisibility'),
|
|
|
|
defaultNoteLocalOnly: defaultStore.makeGetterSetter('defaultNoteLocalOnly'),
|
|
|
|
rememberNoteVisibility: defaultStore.makeGetterSetter('rememberNoteVisibility'),
|
2021-08-24 06:52:33 -05:00
|
|
|
keepCw: defaultStore.makeGetterSetter('keepCw'),
|
2020-10-17 06:12:00 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
2020-12-18 19:55:52 -06:00
|
|
|
this.isLocked = this.$i.isLocked;
|
|
|
|
this.autoAcceptFollowed = this.$i.autoAcceptFollowed;
|
|
|
|
this.noCrawle = this.$i.noCrawle;
|
|
|
|
this.isExplorable = this.$i.isExplorable;
|
2021-04-17 01:30:26 -05:00
|
|
|
this.hideOnlineStatus = this.$i.hideOnlineStatus;
|
2021-10-17 11:16:59 -05:00
|
|
|
this.publicReactions = this.$i.publicReactions;
|
2021-11-07 03:04:32 -06:00
|
|
|
this.ffVisibility = this.$i.ffVisibility;
|
2020-10-17 06:12:00 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
save() {
|
|
|
|
os.api('i/update', {
|
|
|
|
isLocked: !!this.isLocked,
|
|
|
|
autoAcceptFollowed: !!this.autoAcceptFollowed,
|
2020-11-25 06:31:34 -06:00
|
|
|
noCrawle: !!this.noCrawle,
|
2020-12-11 06:16:20 -06:00
|
|
|
isExplorable: !!this.isExplorable,
|
2021-04-17 01:30:26 -05:00
|
|
|
hideOnlineStatus: !!this.hideOnlineStatus,
|
2021-10-17 11:16:59 -05:00
|
|
|
publicReactions: !!this.publicReactions,
|
2021-11-07 03:04:32 -06:00
|
|
|
ffVisibility: this.ffVisibility,
|
2020-10-17 06:12:00 -05:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|