Index: components/StudioOrders/StudioOrderDetails/StudioOrderDetails.component.tsx =================================================================== diff -u -r0d8319d144cc6c69ec7cb32c876954ee542764d1 -r215c4e474327850aa59bdbbc6a37fa397d4bbe73 --- components/StudioOrders/StudioOrderDetails/StudioOrderDetails.component.tsx (.../StudioOrderDetails.component.tsx) (revision 0d8319d144cc6c69ec7cb32c876954ee542764d1) +++ components/StudioOrders/StudioOrderDetails/StudioOrderDetails.component.tsx (.../StudioOrderDetails.component.tsx) (revision 215c4e474327850aa59bdbbc6a37fa397d4bbe73) @@ -1,6 +1,6 @@ -import { OrderedListOutlined, FormOutlined } from '@ant-design/icons'; +import { FormOutlined, OrderedListOutlined } from '@ant-design/icons'; import { DeleteOutlined, LoadingOutlined, RollbackOutlined } from "@ant-design/icons/lib"; -import { Alert, Button, Checkbox, Col, Layout, Modal, Row, Space, Spin, Table, Tabs, Tag } from 'antd'; +import { Alert, Button, Checkbox, Col, Layout, Modal, notification, Row, Space, Spin, Table, Tabs, Tag } from 'antd'; import Column from "antd/es/table/Column"; import { IStudioOrderPart } from 'lemans-api/models/StudioOrder/studioOrder.types'; import { ConfirmationModal, DeleteButton, flash, InlineEdit } from 'lemans-common'; @@ -43,7 +43,6 @@ const [showForm, setShowForm] = React.useState(false); const [isLoading, setIsLoading] = React.useState(false); const [isNoteModalVisible, setIsNoteModalVisible] = React.useState(false); - const [warningText, setWarningText] = React.useState(''); const toggleForm = () => { showForm ? props.goTo(studioOrderUrl(props.studioOrderId), false, true) : props.onAddPartsModalOpen(); @@ -122,14 +121,17 @@ setRefresh(); // special handling of messages for just this endpoint if (res.messages && res.messages.length > 0) { - let wText = warningText; + let wText = ''; res.messages.map((resWarning:any) => { - // flash.error(resWarning.text); - wText += resWarning.text+`\n`; + wText += resWarning.text+`\n \n`; }) - setWarningText(wText); - console.log(warningText) - flash.error(warningText); + notification.error({ + message: 'Error', + description: ( +