diff --git a/services/msb-operations-history/src/widgets/List/List.tsx b/services/msb-operations-history/src/widgets/List/List.tsx index 6f481de3f..32b9475ea 100644 --- a/services/msb-operations-history/src/widgets/List/List.tsx +++ b/services/msb-operations-history/src/widgets/List/List.tsx @@ -32,8 +32,7 @@ namespace List { const { records, isLoading, lastFailedError, loadNext, reload } = useListRecords(count, isStrictCount); const showMoreButton = records.length > 0 && !lastFailedError && loadNext; const showReloadButton = lastFailedError && records.length > 0; - const allowInformer = - (isInformerAllowed === undefined ? defaultAllowInformer : isInformerAllowed) && !lastFailedError && !isLoading; + const allowInformer = (isInformerAllowed === undefined ? defaultAllowInformer : isInformerAllowed) && !lastFailedError && !isLoading; useEffect(() => { if (!isLoading && loadedRecords) { @@ -50,6 +49,7 @@ namespace List { )} Promise; export interface Props { isLoading: boolean; + isSystemResponseDescriptionAllowed?: boolean lastFailedError: LIST_RECORDS_ERROR | null; records: OperationHistoryModel.Model[]; lastElementVisibleHandler: LastElementVisibleHandler | null; reload(): void; } - export const Element = ({ isLoading, lastFailedError, records, lastElementVisibleHandler }: Props): ReactElement => { + const systemResponseDescriptionAllowed = false; + + export const Element = ({ + isLoading, + lastFailedError, + records, + lastElementVisibleHandler, + isSystemResponseDescriptionAllowed, + }: Props): ReactElement => { if (isLoading && records.length === 0) { return ( @@ -53,10 +62,17 @@ namespace ListContent { ); } + const isDescriptionAllowed = isSystemResponseDescriptionAllowed ?? systemResponseDescriptionAllowed; + if (records.length === 0) { return ( - + ); }