Added job intake process for BOD-114

This commit is contained in:
Patrick Fic
2020-05-13 00:38:10 -07:00
parent cf8e0a918c
commit c470e0ba18
39 changed files with 2508 additions and 37 deletions

View File

@@ -5,7 +5,9 @@ import { createStructuredSelector } from "reselect";
import { setEmailOptions } from "../../redux/email/email.actions";
import { selectPrintCenter } from "../../redux/modals/modals.selectors";
import { selectBodyshop } from "../../redux/user/user.selectors";
import RenderTemplate from "../../utils/RenderTemplate";
import RenderTemplate, {
displayTemplateInWindow,
} from "../../utils/RenderTemplate";
const mapStateToProps = createStructuredSelector({
printCenterModal: selectPrintCenter,
bodyshop: selectBodyshop,
@@ -28,12 +30,9 @@ export function PrintCenterItemComponent({
name: item.key,
variables: { id: id },
},
bodyshop
);
var newWin = window.open();
newWin.document.write(html);
displayTemplateInWindow(html);
};
if (disabled) return <li className='print-center-item'>{item.title} </li>;