Skip to content

Commit

Permalink
Merge pull request #127 from AkshataKatwal16/page-issue
Browse files Browse the repository at this point in the history
Issue feat: SCTA  can see all state content on discover content page
  • Loading branch information
itsvick authored Dec 1, 2024
2 parents 13d32df + c4c5eb9 commit 9edb0e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/pages/workspace/content/discover-contents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const columns = [
{ key: 'create-by', title: 'CREATED BY', dataType: DataType.String, width: "100px" },

{ key: 'contentType', title: 'CONTENT TYPE', dataType: DataType.String, width: "100px" },
{ key: 'state', title: 'STATE', dataType: DataType.String, width: "100px" },

{ key: 'status', title: 'STATUS', dataType: DataType.String, width: "100px" },
{ key: 'lastUpdatedOn', title: 'LAST MODIFIED', dataType: DataType.String, width: "100px" },

Expand Down Expand Up @@ -158,7 +160,9 @@ const ContentsPage = () => {
mimeType: item.mimeType,
mode: item.mode,
creator: item.creator,
description: item?.description
description: item?.description,
state: item?.state



}));
Expand Down
4 changes: 2 additions & 2 deletions src/services/ContentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const getReqBodyWithStatus = (
{
const userRole = getLocalStoredUserRole();

if(userRole===Role.SCTA && localStorage.getItem("stateName"))
if(userRole===Role.SCTA )
{
return {
...upForReviewReqBody,
Expand All @@ -82,7 +82,7 @@ const getReqBodyWithStatus = (
status,
primaryCategory,
createdBy:{"!=":localStorage.getItem("userId")},
state:localStorage.getItem("stateName"),
// state:localStorage.getItem("stateName"),

},

Expand Down
1 change: 1 addition & 0 deletions src/utils/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ interface content {
mimeType?: string;
primaryCategory: string;
mode?: string;
state?:string
}

0 comments on commit 9edb0e5

Please sign in to comment.