Merged in release/2022-08-26 (pull request #568)
IO-1984 Resolve error on email audit tab. Approved-by: Patrick Fic
This commit is contained in:
@@ -85,28 +85,30 @@ export function JobAuditTrail({ currentUser, jobId }) {
|
|||||||
dataIndex: "subject",
|
dataIndex: "subject",
|
||||||
key: "subject",
|
key: "subject",
|
||||||
},
|
},
|
||||||
...(currentUser?.email.includes("@imex.") && [
|
...(currentUser?.email.includes("@imex.")
|
||||||
{
|
? [
|
||||||
title: t("audit.fields.contents"),
|
{
|
||||||
dataIndex: "contents",
|
title: t("audit.fields.contents"),
|
||||||
key: "contents",
|
dataIndex: "contents",
|
||||||
width: "10%",
|
key: "contents",
|
||||||
render: (text, record) => (
|
width: "10%",
|
||||||
<Button
|
render: (text, record) => (
|
||||||
onClick={() => {
|
<Button
|
||||||
var win = window.open(
|
onClick={() => {
|
||||||
"",
|
var win = window.open(
|
||||||
"Title",
|
"",
|
||||||
"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=400,"
|
"Title",
|
||||||
);
|
"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=400,"
|
||||||
win.document.body.innerHTML = record.contents;
|
);
|
||||||
}}
|
win.document.body.innerHTML = record.contents;
|
||||||
>
|
}}
|
||||||
Preview
|
>
|
||||||
</Button>
|
Preview
|
||||||
),
|
</Button>
|
||||||
},
|
),
|
||||||
]),
|
},
|
||||||
|
]
|
||||||
|
: []),
|
||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<Row gutter={[16, 16]}>
|
<Row gutter={[16, 16]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user