From bbef2a953ebf2f7f063641e6764ec8571cd78b75 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 13 Aug 2023 21:02:25 +0900 Subject: enhance(frontend): tweak user moderation page --- packages/frontend/src/router.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'packages/frontend/src/router.ts') diff --git a/packages/frontend/src/router.ts b/packages/frontend/src/router.ts index 0876e533d0..2e4494814a 100644 --- a/packages/frontend/src/router.ts +++ b/packages/frontend/src/router.ts @@ -42,10 +42,6 @@ export const routes = [{ }, { path: '/clips/:clipId', component: page(() => import('./pages/clip.vue')), -}, { - path: '/user-info/:userId', - component: page(() => import('./pages/user-info.vue')), - hash: 'initialTab', }, { path: '/instance-info/:host', component: page(() => import('./pages/instance-info.vue')), @@ -334,6 +330,9 @@ export const routes = [{ }, { path: '/registry', component: page(() => import('./pages/registry.vue')), +}, { + path: '/admin/user/:userId', + component: iAmModerator ? page(() => import('./pages/admin-user.vue')) : page(() => import('./pages/not-found.vue')), }, { path: '/admin/file/:fileId', component: iAmModerator ? page(() => import('./pages/admin-file.vue')) : page(() => import('./pages/not-found.vue')), -- cgit v1.2.3-freya