mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 04:08:45 -05:00
feat: view other users' watchlists (#2959)
* feat: view other users' watchlists * test: add cypress tests * feat(lang): translation keys * refactor: yarn format * fix: manage requests perm is parent of view watchlist perm
This commit is contained in:
8
src/pages/profile/watchlist.tsx
Normal file
8
src/pages/profile/watchlist.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import DiscoverWatchlist from '@app/components/Discover/DiscoverWatchlist';
|
||||
import type { NextPage } from 'next';
|
||||
|
||||
const UserWatchlistPage: NextPage = () => {
|
||||
return <DiscoverWatchlist />;
|
||||
};
|
||||
|
||||
export default UserWatchlistPage;
|
||||
13
src/pages/users/[userId]/watchlist.tsx
Normal file
13
src/pages/users/[userId]/watchlist.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import DiscoverWatchlist from '@app/components/Discover/DiscoverWatchlist';
|
||||
import useRouteGuard from '@app/hooks/useRouteGuard';
|
||||
import { Permission } from '@app/hooks/useUser';
|
||||
import type { NextPage } from 'next';
|
||||
|
||||
const UserRequestsPage: NextPage = () => {
|
||||
useRouteGuard([Permission.MANAGE_REQUESTS, Permission.WATCHLIST_VIEW], {
|
||||
type: 'or',
|
||||
});
|
||||
return <DiscoverWatchlist />;
|
||||
};
|
||||
|
||||
export default UserRequestsPage;
|
||||
Reference in New Issue
Block a user