Skip to content

Commit

Permalink
DPO3DPKRT-844/Display Media Group in Batch Generation Table (#618)
Browse files Browse the repository at this point in the history
* (new) display MediaGroup in bacth download tool
  • Loading branch information
EMaslowskiQ authored Aug 14, 2024
1 parent 2308054 commit 1632058
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 3 additions & 10 deletions client/src/pages/Admin/components/AdminToolsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,6 @@ const SelectScenesTable = <T extends DBReference>({ onUpdateSelection, data, col

}, [resetSelection]);

useEffect(() => {
console.log('new data');

// reapply the filters

// return to first page
// setPage(0);
}, [data]);
// JSX
return (
<Box style={{ marginTop: '2rem', marginBottom: '2rem' }}>
Expand Down Expand Up @@ -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' },
Expand Down
3 changes: 2 additions & 1 deletion server/http/routes/api/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const isAuthorized = async (req: Request): Promise<H.IOResults> => {
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);
Expand Down

0 comments on commit 1632058

Please sign in to comment.