From 16320587aff2b0eb9cbaec9cb57da3b1f3d955c7 Mon Sep 17 00:00:00 2001 From: EMaslowskiQ <118929649+EMaslowskiQ@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:12:42 -0400 Subject: [PATCH] DPO3DPKRT-844/Display Media Group in Batch Generation Table (#618) * (new) display MediaGroup in bacth download tool --- .../src/pages/Admin/components/AdminToolsView.tsx | 13 +++---------- server/http/routes/api/project.ts | 3 ++- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/client/src/pages/Admin/components/AdminToolsView.tsx b/client/src/pages/Admin/components/AdminToolsView.tsx index 3598829b..f266e5eb 100644 --- a/client/src/pages/Admin/components/AdminToolsView.tsx +++ b/client/src/pages/Admin/components/AdminToolsView.tsx @@ -379,14 +379,6 @@ const SelectScenesTable = ({ onUpdateSelection, data, col }, [resetSelection]); - useEffect(() => { - console.log('new data'); - - // reapply the filters - - // return to first page - // setPage(0); - }, [data]); // JSX return ( @@ -597,8 +589,9 @@ const AdminToolsBatchGeneration = (): React.ReactElement => { const getColumnHeader = (): ColumnHeader[] => { return [ { key: 'id', label: 'ID', align: 'center' }, - { key: 'name', label: 'Scene Name', align: 'center', link: true }, - { key: 'subject.name', label: 'Subject Name', align: 'center' }, + { key: 'name', label: 'Scene', align: 'center', link: true }, + { key: 'mediaGroup.name', label: 'Media Group', align: 'center' }, + { key: 'subject.name', label: 'Subject', align: 'center' }, { key: 'downloads.status', label: 'Downloads', align: 'center' }, { key: 'publishedState', label: 'Published', align: 'center' }, // { key: 'datePublished', label: 'Published (Date)', align: 'center' }, diff --git a/server/http/routes/api/project.ts b/server/http/routes/api/project.ts index 35e7216e..894fe4ac 100644 --- a/server/http/routes/api/project.ts +++ b/server/http/routes/api/project.ts @@ -43,7 +43,8 @@ const isAuthorized = async (req: Request): Promise => { const authorizedUsers: number[] = [ 2, // Jon Blundell 4, // Jamie Cope - 5 // Eric Maslowski + 5, // Eric Maslowski + 6, // Megan Dattoria ]; if(!authorizedUsers.includes(LS.idUser)) { LOG.error(`API.getProjects failed. user is not authorized for this request (${LS.idUser})`,LOG.LS.eHTTP);