Skip to content
Snippets Groups Projects

CE-1891: Reroute no access to 401 page

Merged CE-1891: Reroute no access to 401 page
4 unresolved threads
Merged Alexander Madsen requested to merge ce-1891-no-access-401-page into develop
4 unresolved threads

Ticket: CE-1891

Reroute no access to 401 page for user page and management & admin tab on IOC details page

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
3 3 import { LinearProgress } from "@mui/material";
4 4 import NotFoundView from "../../components/navigation/NotFoundView/NotFoundView";
5 5 import { onFetchEntityError } from "../../components/common/Helper";
6 6 import { useIOC } from "../../api/SwaggerApi";
7 import { userContext } from "@ess-ics/ce-ui-common/dist/contexts/User";
8 import useUrlState from "@ahooksjs/use-url-state";
7 9
8 10 export function IOCDetailsContainer({ id }) {
9 const [notFoundError, setNotFoundError] = useState();
11 const { user } = useContext(userContext);
12 const [errorMessage, setErrorMessage] = useState(null);
13
14 const [urlState] = useUrlState();
15 const [statusTab] = useState(urlState?.tab);
16
17 const [notFoundError, setNotFoundError] = useState(null);
  • 1 import React, { useState } from "react";
    1 import React, { useEffect, useContext, useState } from "react";
    2 2 import { IOCDetailsView } from "./IOCDetailsView";
    3 3 import { LinearProgress } from "@mui/material";
    4 4 import NotFoundView from "../../components/navigation/NotFoundView/NotFoundView";
    5 5 import { onFetchEntityError } from "../../components/common/Helper";
    6 6 import { useIOC } from "../../api/SwaggerApi";
    7 import { userContext } from "@ess-ics/ce-ui-common/dist/contexts/User";
    8 import useUrlState from "@ahooksjs/use-url-state";
    7 9
    8 10 export function IOCDetailsContainer({ id }) {
    9 const [notFoundError, setNotFoundError] = useState();
    11 const { user } = useContext(userContext);
    12 const [errorMessage, setErrorMessage] = useState(null);
  • 1 import React, { useContext, useEffect, useState } from "react";
    2 import { UserPageView } from "./UserPageView";
    3 import { LinearProgress } from "@mui/material";
    4 import NotFoundView from "../../components/navigation/NotFoundView/NotFoundView";
    5 import { useUserInfo } from "../../api/SwaggerApi";
    6 import { userContext } from "@ess-ics/ce-ui-common/dist/contexts/User";
    7
    8 export function UserDetailsContainer({ userName }) {
    9 const { user } = useContext(userContext);
    10 const [errorMessage, setErrorMessage] = useState(null);
  • Alexander Madsen added 8 commits

    added 8 commits

    Compare with previous version

  • Alexander Madsen added 3 commits

    added 3 commits

    • 90520191 - Props with values for new KeyValueTable
    • f8e14e39 - One error state instead of two
    • 47d8a23a - Error state name more to the point

    Compare with previous version

  • Christina Jenks approved this merge request

    approved this merge request

  • added 9 commits

    • 47d8a23a...334f1373 - 4 commits from branch develop
    • dd9c9195 - Show user 401 page when not logged in
    • ebaf6657 - 401 page for ICO Manage & Admin tabs when not logged in
    • fd7227c0 - Props with values for new KeyValueTable
    • a2009e61 - One error state instead of two
    • 4fca46ff - Error state name more to the point

    Compare with previous version

  • Alexander Madsen mentioned in commit 59dd9044

    mentioned in commit 59dd9044

  • Please register or sign in to reply
    Loading