IO-1047 IO-1046 IO-1045 Add production alert everywhere

This commit is contained in:
Patrick Fic
2021-05-07 15:41:40 -07:00
parent 49c3a512c0
commit 529c12e4ee
5 changed files with 49 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
import { SyncOutlined } from "@ant-design/icons";
import { SyncOutlined, ExclamationCircleFilled } from "@ant-design/icons";
import { useQuery } from "@apollo/client";
import { Button, Card, Input, Space, Table } from "antd";
import queryString from "query-string";
@@ -102,7 +102,12 @@ export function JobsList({ bodyshop }) {
to={"/manage/jobs/" + record.id}
onClick={(e) => e.stopPropagation()}
>
{record.ro_number || t("general.labels.na")}
<Space>
{record.ro_number || t("general.labels.na")}
{record.production_vars && record.production_vars.alert ? (
<ExclamationCircleFilled className="production-alert" />
) : null}
</Space>
</Link>
),
},