diff --git a/packages/frontend/src/pages/admin-user.vue b/packages/frontend/src/pages/admin-user.vue
index d10dc8ec4..5c26c9402 100644
--- a/packages/frontend/src/pages/admin-user.vue
+++ b/packages/frontend/src/pages/admin-user.vue
@@ -180,20 +180,6 @@ SPDX-License-Identifier: AGPL-3.0-only
-
-
-
- {{ i18n.ts.approvalStatus }}
- {{ approved ? i18n.ts.approved : i18n.ts.notApproved }}
-
-
-
- Reason
-
-
- {{ i18n.ts.approveAccount }}
- {{ i18n.ts.denyAccount }}
-
@@ -244,7 +230,6 @@ let approved = $ref(false);
let suspended = $ref(false);
let markedAsNSFW = $ref(false);
let moderationNote = $ref('');
-let signupReason = $ref('');
const filesPagination = {
endpoint: 'admin/drive/files' as const,
@@ -278,7 +263,6 @@ function createFetcher() {
approved = info.approved;
suspended = info.isSuspended;
moderationNote = info.moderationNote;
- signupReason = info.signupReason;
markedAsNSFW = info.alwaysMarkNsfw;
watch($$(moderationNote), async () => {
@@ -397,16 +381,6 @@ async function deleteAccount() {
}
}
-async function approveAccount() {
- const confirm = await os.confirm({
- type: 'warning',
- text: i18n.ts.approveConfirm,
- });
- if (confirm.canceled) return;
- await os.api('admin/approve-user', { userId: user.id });
- await refreshUser();
-}
-
async function assignRole() {
const roles = await os.api('admin/roles/list');
@@ -493,60 +467,31 @@ watch($$(user), () => {
const headerActions = $computed(() => []);
-const headerTabs = $computed(() => iAmAdmin && !approved ?
- [{
- key: 'overview',
- title: i18n.ts.overview,
- icon: 'ph-info ph-bold ph-lg',
- }, {
- key: 'roles',
- title: i18n.ts.roles,
- icon: 'ph-seal-check ph-bold pg-lg',
- }, {
- key: 'announcements',
- title: i18n.ts.announcements,
- icon: 'ph-megaphone ph-bold ph-lg',
- }, {
- key: 'drive',
- title: i18n.ts.drive,
- icon: 'ph-cloud ph-bold ph-lg',
- }, {
- key: 'chart',
- title: i18n.ts.charts,
- icon: 'ph-chart-line ph-bold pg-lg',
- }, {
- key: 'raw',
- title: 'Raw',
- icon: 'ph-code ph-bold pg-lg',
- }, {
- key: 'approval',
- title: 'Approval',
- icon: 'ph-eye ph-bold pg-lg',
- }] : [{
- key: 'overview',
- title: i18n.ts.overview,
- icon: 'ph-info ph-bold ph-lg',
- }, {
- key: 'roles',
- title: i18n.ts.roles,
- icon: 'ph-seal-check ph-bold pg-lg',
- }, {
- key: 'announcements',
- title: i18n.ts.announcements,
- icon: 'ph-megaphone ph-bold ph-lg',
- }, {
- key: 'drive',
- title: i18n.ts.drive,
- icon: 'ph-cloud ph-bold ph-lg',
- }, {
- key: 'chart',
- title: i18n.ts.charts,
- icon: 'ph-chart-line ph-bold pg-lg',
- }, {
- key: 'raw',
- title: 'Raw',
- icon: 'ph-code ph-bold pg-lg',
- }]);
+const headerTabs = $computed(() => [{
+ key: 'overview',
+ title: i18n.ts.overview,
+ icon: 'ph-info ph-bold ph-lg',
+}, {
+ key: 'roles',
+ title: i18n.ts.roles,
+ icon: 'ph-seal-check ph-bold pg-lg',
+}, {
+ key: 'announcements',
+ title: i18n.ts.announcements,
+ icon: 'ph-megaphone ph-bold ph-lg',
+}, {
+ key: 'drive',
+ title: i18n.ts.drive,
+ icon: 'ph-cloud ph-bold ph-lg',
+}, {
+ key: 'chart',
+ title: i18n.ts.charts,
+ icon: 'ph-chart-line ph-bold pg-lg',
+}, {
+ key: 'raw',
+ title: 'Raw',
+ icon: 'ph-code ph-bold pg-lg',
+}]);
definePageMetadata(computed(() => ({
title: user ? acct(user) : i18n.ts.userInfo,
diff --git a/packages/frontend/src/pages/admin/approvals.vue b/packages/frontend/src/pages/admin/approvals.vue
index a326e15ef..3f7f29262 100644
--- a/packages/frontend/src/pages/admin/approvals.vue
+++ b/packages/frontend/src/pages/admin/approvals.vue
@@ -1,8 +1,3 @@
-
-