Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin dev2 #828

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const Header = () => {
<>
<Typography variant="body1">
<NavLink
to={`/my-organization/${userData?.organization?.id}`}
to={`/my-organization/${localStorage.getItem("id")}`}
className={({ isActive }) =>
isActive
? `${classes.highlightedMenu} organizations`
Expand All @@ -220,7 +220,7 @@ const Header = () => {
</Typography>
<Typography variant="body1">
<NavLink
to={`/task-list`}
to={`/task-list/${localStorage.getItem("id")?localStorage.getItem("id"):1}`}
className={({ isActive }) =>
isActive
? `${classes.highlightedMenu} task-list`
Expand Down
4 changes: 2 additions & 2 deletions src/common/MobileNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ function MobileNavbar({ UserMenu, SettingsMenu, userData }) {
{
name: "Organizations",
onClick: () => {
navigate(`/my-organization/${userData?.organization?.id}`);
navigate(`/my-organization/${localStorage.getItem("id")}`);
setOpenDrawer(false);
},
},
{
name: "Tasks",
onClick: () => {
navigate(`/task-list`);
navigate(`/task-list/${localStorage.getItem("id")}`);
setOpenDrawer(false);
},
},
Expand Down
3 changes: 1 addition & 2 deletions src/containers/Organization/MyOrganization.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import {

//Styles
import { DatasetStyle } from "styles";

//Components
import {
Box,
Card,
Expand Down Expand Up @@ -76,6 +74,7 @@ const MyOrganization = () => {
const organizationDetails = useSelector(
(state) => state.getOrganizationDetails.data
);
localStorage.setItem("id",id)
const projectList = useSelector((state) => state.getProjectList.data);
const userData = useSelector((state) => state.getLoggedInUserDetails.data);
const usersList = useSelector((state) => state.getOrganizatioUsers.data);
Expand Down
4 changes: 1 addition & 3 deletions src/containers/Organization/OrgLevelTaskList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ const OrgLevelTaskList = () => {
const [bulkSubtitleAlert, setBulkSubtitleAlert] = useState(false);
const [bulkSubtitleAlertData, setBulkSubtitleAlertData] = useState({});

//Server Side Pagination States
const [offset, setOffset] = useState(0);
const [limit, setLimit] = useState(10);
const [searchAnchor, setSearchAnchor] = useState(null);
Expand All @@ -175,7 +174,6 @@ const OrgLevelTaskList = () => {

const apiStatus = useSelector((state) => state.apiStatus);

//Fiters and Search
const orgSelectedFilters = useSelector(
(state) => state.orgTaskFilters.orgSelectedFilters
);
Expand Down Expand Up @@ -352,7 +350,7 @@ const OrgLevelTaskList = () => {
}, {});

const apiObj = new FetchPaginatedOrgTaskListAPI(
orgId,
localStorage.getItem("id"),
offset + 1,
limit,
searchRequest,
Expand Down
3 changes: 1 addition & 2 deletions src/containers/Organization/Video/RightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s

const [selection, setselection] = useState(false);
const taskData = useSelector((state) => state.getTaskDetails.data);
const assignedOrgId = JSON.parse(localStorage.getItem("userData"))
?.organization?.id;
const assignedOrgId = JSON.parse(localStorage.getItem("id"))
const subtitles = useSelector((state) => state.commonReducer.subtitles);
const player = useSelector((state) => state.commonReducer.player);
const totalPages = useSelector((state) => state.commonReducer.totalPages);
Expand Down
3 changes: 1 addition & 2 deletions src/containers/Organization/Video/TranslationRightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show
const textboxes = useRef([]);

const taskData = useSelector((state) => state.getTaskDetails.data);
const assignedOrgId = JSON.parse(localStorage.getItem("userData"))
?.organization?.id;
const assignedOrgId = JSON.parse(localStorage.getItem("id"));
const subtitles = useSelector((state) => state.commonReducer.subtitles);
const player = useSelector((state) => state.commonReducer.player);
const totalPages = useSelector((state) => state.commonReducer.totalPages);
Expand Down
3 changes: 1 addition & 2 deletions src/containers/Organization/Video/VoiceOverRightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ const VoiceOverRightPanel = ({ setCurrentIndex }) => {
const $audioRef = useRef([]);

const taskData = useSelector((state) => state.getTaskDetails.data);
const assignedOrgId = JSON.parse(localStorage.getItem("userData"))
?.organization?.id;
const assignedOrgId = JSON.parse(localStorage.getItem("id"))
const subtitles = useSelector((state) => state.commonReducer.subtitles);
const player = useSelector((state) => state.commonReducer.player);
const subtitlesForCheck = useSelector(
Expand Down
3 changes: 1 addition & 2 deletions src/containers/Organization/Video/VoiceOverRightPanel1.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
const $audioRef = useRef([]);

const taskData = useSelector((state) => state.getTaskDetails.data);
const assignedOrgId = JSON.parse(localStorage.getItem("userData"))
?.organization?.id;
const assignedOrgId = JSON.parse(localStorage.getItem("id"))
const subtitles = useSelector((state) => state.commonReducer.subtitles);
const player = useSelector((state) => state.commonReducer.player);
const subtitlesForCheck = useSelector(
Expand Down
2 changes: 1 addition & 1 deletion src/utils/userDetails.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ganavi from "../assets/profileImages/Ganavi.png";
// import ganavi from "../assets/profileImages/Ganavi.png";

const teamDetails = [
// {
Expand Down
2 changes: 1 addition & 1 deletion src/web.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const RootRouter = () => {
)}
/>
<Route
path="/task-list"
path="/task-list/:id"
element={ProtectedRouteWrapper(
<Layout component={<OrgLevelTaskList />} />
)}
Expand Down