diff --git a/fe-piattaforma/src/components/AccordionRow/accordionRow.tsx b/fe-piattaforma/src/components/AccordionRow/accordionRow.tsx index 0c969f9e2..bc3e722a5 100644 --- a/fe-piattaforma/src/components/AccordionRow/accordionRow.tsx +++ b/fe-piattaforma/src/components/AccordionRow/accordionRow.tsx @@ -22,10 +22,10 @@ export interface AccordionRowI { clickDeleteAction?: () => void; clickDownloadAction?: () => void; innerInfo?: - | { - [key: string]: string; - } - | undefined; + | { + [key: string]: string; + } + | undefined; status?: string | undefined; StatusElement?: ReactElement | undefined; onTooltipInfo?: string; @@ -151,10 +151,11 @@ const AccordionRow: React.FC = ({ color='primary' /> - ) : } + + + + Caricamento fallito + + } {((onTooltipInfo || innerInfo?.onTooltipInfo) && innerInfo?.isPresentInList) || - innerInfo?.failedCSV ? ( + innerInfo?.failedCSV ? (
= ({ toggleOne(!openOne)} */ + /* isOpen={openOne} + toggle={() => toggleOne(!openOne)} */ > {onTooltipInfo} {innerInfo.onTooltipInfo} diff --git a/fe-piattaforma/src/components/Table/view/tableDesktop.tsx b/fe-piattaforma/src/components/Table/view/tableDesktop.tsx index 5e5897cdd..338f3528d 100644 --- a/fe-piattaforma/src/components/Table/view/tableDesktop.tsx +++ b/fe-piattaforma/src/components/Table/view/tableDesktop.tsx @@ -5,7 +5,6 @@ import { Icon, Label, Table as TableKit, - Tooltip, UncontrolledTooltip, } from 'design-react-kit'; import clsx from 'clsx'; @@ -289,19 +288,29 @@ const TableDesktop: React.FC = (props) => { aria-hidden /> - ) : - + ) : td.jobStatus === "GENERIC_FAIL" || td.jobStatus === "FAIL_MONGO" || td.jobStatus === "FAIL_S3_API" ? ( +
+ + + + Caricamento fallito + +
+ ) : null }
diff --git a/fe-piattaforma/src/components/Table/view/tableMobile.tsx b/fe-piattaforma/src/components/Table/view/tableMobile.tsx index d94c8f02e..6028e13be 100644 --- a/fe-piattaforma/src/components/Table/view/tableMobile.tsx +++ b/fe-piattaforma/src/components/Table/view/tableMobile.tsx @@ -68,7 +68,7 @@ const TableMobile: React.FC = ({ clickDeleteAction: onActionClick?.[CRUDActionTypes.DELETE] ? () => onActionClick?.[CRUDActionTypes.DELETE](item) : undefined, - clickDownloadAction: onActionClick?.[CRUDActionTypes.DOWNLOAD] && item.jobStatus === 'SUCCESS' + clickDownloadAction: onActionClick?.[CRUDActionTypes.DOWNLOAD] && item.jobStatus !== 'GENERIC_FAIL' && item.jobStatus !== 'FAIL_MONGO' && item.jobStatus !== 'FAIL_S3_API' ? () => {onActionClick?.[CRUDActionTypes.DOWNLOAD](item)} : undefined, innerInfo: isEmpty(rest) ? undefined : { id, ...rest }, diff --git a/fe-piattaforma/src/styles/common/_chips.scss b/fe-piattaforma/src/styles/common/_chips.scss index 310773013..1e9ef9111 100644 --- a/fe-piattaforma/src/styles/common/_chips.scss +++ b/fe-piattaforma/src/styles/common/_chips.scss @@ -1,6 +1,7 @@ .chip { border: none !important; cursor: default; + pointer-events: none; white-space: nowrap; @media screen and (min-width: 320px) { height: auto !important;