mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 00:26:37 +08:00
feat(frontend): add a dedicated 403 forbidden page
Show /403 instead of toasting or staying on the denied screen when the API returns 403 or a non-admin opens an admin route.
This commit is contained in:
@@ -27,6 +27,8 @@ export function SiteTitleUpdater() {
|
||||
suffix = ` - ${t('admin')}`;
|
||||
} else if (pathname === '/home') {
|
||||
suffix = ` - ${t('dashboard')}`;
|
||||
} else if (pathname === '/403') {
|
||||
suffix = ` - ${t('forbidden')}`;
|
||||
} else if (pathname === '/') {
|
||||
suffix = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user