mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-07 06:52:28 +00:00
feat: add settings page with language dropdown
This commit is contained in:
@@ -13,6 +13,12 @@ export function useAppGoBack(): () => void {
|
||||
return
|
||||
}
|
||||
|
||||
// Settings page always goes back to sessions
|
||||
if (pathname === '/settings') {
|
||||
navigate({ to: '/sessions' })
|
||||
return
|
||||
}
|
||||
|
||||
// For single file view, go back to files list
|
||||
if (pathname.match(/^\/sessions\/[^/]+\/file$/)) {
|
||||
const filesPath = pathname.replace(/\/file$/, '/files')
|
||||
|
||||
Reference in New Issue
Block a user