diff --git a/frontend/src/components/ActionTable/ActionTable.tsx b/frontend/src/components/ActionTable/ActionTable.tsx
index af405c75..71174648 100644
--- a/frontend/src/components/ActionTable/ActionTable.tsx
+++ b/frontend/src/components/ActionTable/ActionTable.tsx
@@ -12,6 +12,7 @@ import { barrierToString, organizationToString } from '../../utils/EnumToString'
import { getFusionProjectName } from '../../utils/helpers'
import PriorityIndicator from '../Action/PriorityIndicator'
import { PersonDetails } from '@equinor/fusion-react-person'
+import { useAppContext } from '../../context/AppContext'
const { Row, Cell } = Table
@@ -47,10 +48,12 @@ interface Props {
}
const ActionTable = ({ onClickAction, actionsWithAdditionalInfo, personDetailsList, showEvaluations = false, projects }: Props) => {
+ const {currentProject} = useAppContext()
+
const columns = columnOptions.filter(
col =>
(col.name === 'Evaluation' && showEvaluations) ||
- (col.name === 'Project' && projects) ||
+ (col.name === 'Project' && !currentProject) ||
(col.name !== 'Evaluation' && col.name !== 'Project')
)
@@ -117,7 +120,7 @@ const ActionTable = ({ onClickAction, actionsWithAdditionalInfo, personDetailsLi
>
{action.title}
- {projects && {getFusionProjectName(projects, action.question.evaluation.project.fusionProjectId)} | }
+ {!currentProject && {getFusionProjectName(projects, action.question.evaluation.project.fusionProjectId)} | }
{showEvaluations && {action.question.evaluation.name} | }
{barrierToString(barrier)} |
{organizationToString(organization)} |
diff --git a/frontend/src/views/Project/Admin/Components/CategoryHeader.tsx b/frontend/src/views/Project/Admin/Components/CategoryHeader.tsx
index f5a4d73e..426489ee 100644
--- a/frontend/src/views/Project/Admin/Components/CategoryHeader.tsx
+++ b/frontend/src/views/Project/Admin/Components/CategoryHeader.tsx
@@ -49,7 +49,7 @@ const CategoryHeader = ({
const projectCategoryOptions = [
{
- title: 'All project categories',
+ title: 'All questionnaire templates',
id: 'all',
},
]
@@ -87,7 +87,7 @@ const CategoryHeader = ({
option.id === selectedProjectCategory)?.title}
onSelect={option => {
const selectedOption = (option as any).nativeEvent.detail.selected[0]
@@ -105,11 +105,11 @@ const CategoryHeader = ({
-
+