IO-723 Audit notes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
AuditOutlined,
|
||||
DeleteFilled,
|
||||
EditFilled,
|
||||
EyeInvisibleFilled,
|
||||
@@ -40,6 +41,7 @@ export function JobNotesComponent({
|
||||
<WarningFilled style={{ margin: 4, color: "red" }} />
|
||||
) : null}
|
||||
{record.private ? <EyeInvisibleFilled style={{ margin: 4 }} /> : null}
|
||||
{record.audit ? <AuditOutlined style={{ margin: 4 }} /> : null}
|
||||
</span>
|
||||
),
|
||||
},
|
||||
@@ -76,11 +78,13 @@ export function JobNotesComponent({
|
||||
<span>
|
||||
<Button
|
||||
loading={deleteLoading}
|
||||
disabled={record.audit}
|
||||
onClick={() => handleNoteDelete(record.id)}
|
||||
>
|
||||
<DeleteFilled />
|
||||
</Button>
|
||||
<Button
|
||||
disabled={record.audit}
|
||||
onClick={() => {
|
||||
setNoteUpsertContext({
|
||||
actions: { refetch: refetch },
|
||||
|
||||
Reference in New Issue
Block a user