From 0b36587366523dcf4c7e196d45c5151cb97b8080 Mon Sep 17 00:00:00 2001 From: olewandowski1 Date: Fri, 12 Apr 2024 15:37:55 +0200 Subject: [PATCH] OP-1858: adjust edit/add rights --- src/components/ReportSearcher.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/ReportSearcher.js b/src/components/ReportSearcher.js index 7ff81f5..2c58a54 100644 --- a/src/components/ReportSearcher.js +++ b/src/components/ReportSearcher.js @@ -3,13 +3,14 @@ import { useSelector } from "react-redux"; import { Box, Button, Tooltip } from "@material-ui/core"; import HelpOutlineIcon from "@material-ui/icons/HelpOutline"; +import EditIcon from '@material-ui/icons/Edit'; import { Searcher, useTranslations, useModulesManager, } from "@openimis/fe-core"; -import { RIGHT_REPORT_EDIT, RIGHT_REPORT_ADD } from "../constants"; +import { RIGHT_REPORT_EDIT } from "../constants"; import { useReportsQuery } from "../hooks"; import GenerateReportPicker from "./GenerateReportPicker"; import ReportDefinitionEditorDialog from "./ReportDefinitionEditorDialog"; @@ -66,12 +67,6 @@ const ReportSearcher = () => { const formatActions = (report) => !report.category && ( - {rights.includes(RIGHT_REPORT_ADD) && - rights.includes(RIGHT_REPORT_EDIT) && ( - - )}
{
+ {rights.includes(RIGHT_REPORT_EDIT) && ( + + )}
);