Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Esurio committed Sep 9, 2024
1 parent aab4f5c commit 14154b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPostForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ async function toggleSearchableBy() {
{ value: 'public' as const, text: i18n.ts._searchableBy.public },
{ value: 'followers' as const, text: i18n.ts._searchableBy.followers },
{ value: 'reacted' as const, text: i18n.ts._searchableBy.reacted },
{ value: 'limited' as const, text: i18n.ts._searchableBy.specified },
{ value: 'limited' as const, text: i18n.ts._searchableBy.limited },
],
default: searchableBy.value,
});
Expand Down
8 changes: 8 additions & 0 deletions packages/frontend/src/pages/settings/privacy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts._isIndexable.title }}
<template #caption>{{ i18n.ts._isIndexable.description }}</template>
</MkSwitch>
<MkSelect v-model="defaultSearchableBy">
<template #label>{{ i18n.ts._searchableBy.searchableBy }}</template>
<option value="public">{{ i18n.ts._searchableBy.public }}</option>
<option value="followers">{{ i18n.ts._searchableBy.followers }}</option>
<option value="reacted" disabled>{{ i18n.ts._searchableBy.reacted }}</option>
<option value="limited">{{ i18n.ts._searchableBy.limited }}</option>
</MkSelect>

<FormSection>
<div class="_gaps_m">
Expand Down Expand Up @@ -108,6 +115,7 @@ const defaultNoteVisibility = computed(defaultStore.makeGetterSetter('defaultNot
const defaultNoteLocalOnly = computed(defaultStore.makeGetterSetter('defaultNoteLocalOnly'));
const rememberNoteVisibility = computed(defaultStore.makeGetterSetter('rememberNoteVisibility'));
const keepCw = computed(defaultStore.makeGetterSetter('keepCw'));
const defaultSearchableBy = computed(defaultStore.makeGetterSetter('searchableBy'));

function save() {
misskeyApi('i/update', {
Expand Down

0 comments on commit 14154b3

Please sign in to comment.