WIP Read Only for Jobs BOD-409
This commit is contained in:
@@ -13,9 +13,10 @@ import { DateFormatter } from "../../utils/DateFormatter";
|
||||
import { alphaSort } from "../../utils/sorters";
|
||||
import PartsOrderLineBackorderButton from "../parts-order-line-backorder-button/parts-order-line-backorder-button.component";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { selectJobReadOnly } from "../../redux/application/application.selectors";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
//currentUser: selectCurrentUser
|
||||
jobRO: selectJobReadOnly,
|
||||
bodyshop: selectBodyshop,
|
||||
});
|
||||
|
||||
@@ -27,8 +28,8 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export function PartsOrderListTableComponent({
|
||||
setBillEnterContext,
|
||||
bodyshop,
|
||||
jobRO,
|
||||
job,
|
||||
|
||||
billsQuery,
|
||||
handleOnRowClick,
|
||||
}) {
|
||||
@@ -90,6 +91,7 @@ export function PartsOrderListTableComponent({
|
||||
key: "actions",
|
||||
render: (text, record) => (
|
||||
<Button
|
||||
disabled={jobRO}
|
||||
onClick={() => {
|
||||
logImEXEvent("parts_order_receive_bill");
|
||||
|
||||
@@ -197,6 +199,7 @@ export function PartsOrderListTableComponent({
|
||||
render: (text, record) => (
|
||||
<div>
|
||||
<PartsOrderLineBackorderButton
|
||||
disabled={jobRO}
|
||||
partsOrderStatus={record.status}
|
||||
partsLineId={record.id}
|
||||
jobLineId={record.job_line_id}
|
||||
|
||||
Reference in New Issue
Block a user