diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index 99a75330e..e55a08f63 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.js +++ b/apps/OpenSign/src/primitives/GetReportDisplay.js @@ -1352,58 +1352,115 @@ const ReportTable = (props) => {
{props.actions?.length > 0 && - props.actions.map( - (act, index) => - (item.ExtUserPtr?.objectId === - extClass?.[0]?.objectId || - act.btnLabel === "Use") && ( -
handleActionBtn(act, item)} - title={act.hoverLabel} - className={ - act.action !== "option" - ? `${ - act?.btnColor ? act.btnColor : "" - } op-btn op-btn-sm mr-1` - : "text-base-content focus:outline-none text-lg mr-2 relative" - } - > - - {act.btnLabel && ( - - {act.btnLabel} - - )} - {isOption[item.objectId] && - act.action === "option" && ( - + props.actions.map((act, index) => + props.ReportName === "Templates" ? ( + <> + {(item.ExtUserPtr?.objectId === + extClass?.[0]?.objectId || + act.btnLabel === "Use") && ( +
+ handleActionBtn(act, item) + } + title={act.hoverLabel} + className={ + act.action !== "option" + ? `${ + act?.btnColor + ? act.btnColor + : "" + } op-btn op-btn-sm mr-1` + : "text-base-content focus:outline-none text-lg mr-2 relative" + } + > + + {act.btnLabel && ( + + {act.btnLabel} + )} -
- ) + {isOption[item.objectId] && + act.action === "option" && ( + + )} +
+ )} + + ) : ( +
handleActionBtn(act, item)} + title={act.hoverLabel} + className={ + act.action !== "option" + ? `${ + act?.btnColor ? act.btnColor : "" + } op-btn op-btn-sm mr-1` + : "text-base-content focus:outline-none text-lg mr-2 relative" + } + > + + {act.btnLabel && ( + + {act.btnLabel} + + )} + {isOption[item.objectId] && + act.action === "option" && ( + + )} +
+ ) )}
{isShareWith[item.objectId] && (