diff --git a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx index 89e0efa43..3bb6fb271 100644 --- a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx +++ b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx @@ -31,6 +31,7 @@ import AddToProduction from "./jobs-detail-header-actions.addtoproduction.util"; import DuplicateJob from "./jobs-detail-header-actions.duplicate.util"; import JobsDetailHeaderActionsToggleProduction from "./jobs-detail-header-actions.toggle-production"; import SocketContext from "../../contexts/SocketIO/socketContext.jsx"; +import ShareToTeamsButton from "../share-to-teams/share-to-teams-button.jsx"; const mapStateToProps = createStructuredSelector({ bodyshop: selectBodyshop, @@ -130,10 +131,10 @@ export function JobsDetailHeaderActions({ const { socket } = useContext(SocketContext); const { - treatments: { ImEXPay } + treatments: { ImEXPay, Share_To_Teams } } = useSplitTreatments({ attributes: {}, - names: ["ImEXPay"], + names: ["ImEXPay", "Share_To_Teams"], splitKey: bodyshop && bodyshop.imexshopid }); @@ -962,6 +963,16 @@ export function JobsDetailHeaderActions({ } ); + // TODO REMEMBER TO REVERT + // if (Share_To_Teams?.treatment === "on") { + if (true) { + menuItems.push({ + key: "sharetoteams", + id: "job-actions-sharetoteams", + label: + }); + } + menuItems.push({ key: "exportcustdata", id: "job-actions-exportcustdata", diff --git a/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx b/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx index 6f47bad73..39949d2ee 100644 --- a/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx +++ b/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx @@ -19,6 +19,7 @@ import LockWrapperComponent from "../lock-wrapper/lock-wrapper.component"; import PartsReceiveModalContainer from "../parts-receive-modal/parts-receive-modal.container"; import PrintWrapper from "../print-wrapper/print-wrapper.component"; import PartsOrderDrawer from "./parts-order-list-table-drawer.component"; +import ShareToTeamsButton from "../share-to-teams/share-to-teams-button.jsx"; const mapStateToProps = createStructuredSelector({ jobRO: selectJobReadOnly, @@ -66,19 +67,21 @@ export function PartsOrderListTableComponent({ const parts_orders = billsQuery.data ? billsQuery.data.parts_orders : []; const { refetch } = billsQuery; - + // label: const recordActions = (record, showView = false) => ( + {showView && ( + /> )} - + /> - + + /> - + icon={record.completed ? : } + /> + +