diff --git a/packages/frontend/src/pages/admin-user.vue b/packages/frontend/src/pages/admin-user.vue index 61bb0d47e0..578945bf07 100644 --- a/packages/frontend/src/pages/admin-user.vue +++ b/packages/frontend/src/pages/admin-user.vue @@ -22,7 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only - {{ i18n.ts.isSystemAccount }} + {{ i18n.ts.isSystemAccount }} {{ i18n.ts.instanceInfo }} @@ -37,21 +37,23 @@ SPDX-License-Identifier: AGPL-3.0-only {{ ips[0].ip }} --> - - {{ i18n.ts.createdAt }} - - - - {{ i18n.ts.lastActiveDate }} - - - - {{ i18n.ts.email }} - {{ info.email }} - + + + {{ i18n.ts.createdAt }} + + + + {{ i18n.ts.lastActiveDate }} + + + + {{ i18n.ts.email }} + {{ info.email }} + + - + {{ i18n.ts.moderationNote }} {{ i18n.ts.moderationNoteDescription }} @@ -92,7 +94,7 @@ SPDX-License-Identifier: AGPL-3.0-only --> - + {{ i18n.ts.suspend }} @@ -252,6 +254,7 @@ const ap = ref(null); const moderator = ref(false); const silenced = ref(false); const suspended = ref(false); +const isSystem = ref(false); const moderationNote = ref(''); const filesPagination = { endpoint: 'admin/drive/files' as const, @@ -288,6 +291,7 @@ function createFetcher() { silenced.value = info.value.isSilenced; suspended.value = info.value.isSuspended; moderationNote.value = info.value.moderationNote; + isSystem.value = user.value.host == null && user.value.username.includes('.'); watch(moderationNote, async () => { await misskeyApi('admin/update-user-note', { userId: user.value.id, text: moderationNote.value }); @@ -507,7 +511,15 @@ watch(user, () => { const headerActions = computed(() => []); -const headerTabs = computed(() => [{ +const headerTabs = computed(() => isSystem.value ? [{ + key: 'overview', + title: i18n.ts.overview, + icon: 'ti ti-info-circle', +}, { + key: 'raw', + title: 'Raw', + icon: 'ti ti-code', +}] : [{ key: 'overview', title: i18n.ts.overview, icon: 'ti ti-info-circle', diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index 9711ae4964..92a24f99cc 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -13,7 +13,8 @@ SPDX-License-Identifier: AGPL-3.0-only - + + {{ i18n.ts.isSystemAccount }} @@ -61,9 +62,6 @@ SPDX-License-Identifier: AGPL-3.0-only - - {{ i18n.ts.isSystemAccount }} - {{ i18n.ts.moderationNote }}