refactor(privateMode): move option to general tab and requires refresh

This commit is contained in:
무라쿠모 2024-07-21 21:13:18 +09:00
parent cee2e5c52f
commit 91bcefaeff
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7
6 changed files with 63 additions and 57 deletions

View file

@ -255,8 +255,8 @@ const isEditingMemo = ref(false);
const moderationNote = ref(props.user.moderationNote);
const editModerationNote = ref(false);
const hideModerationNote = !iAmModerator || (defaultStore.state.hideSensitiveInformation && defaultStore.state.hideModerationLog);
const hideRoleList = defaultStore.state.hideSensitiveInformation && defaultStore.state.hideRoleList;
const hideModerationNote = !iAmModerator || (defaultStore.state.privateMode && defaultStore.state.hideModerationLog);
const hideRoleList = defaultStore.state.privateMode && defaultStore.state.hideRoleList;
watch(moderationNote, async () => {
await misskeyApi('admin/update-user-note', { userId: props.user.id, text: moderationNote.value });