Introduced JS report and refactored some doc generation. IO-585
This commit is contained in:
@@ -109,11 +109,18 @@ export function EmailOverlayContainer({
|
||||
const render = async () => {
|
||||
logImEXEvent("email_render_template", { template: emailConfig.template });
|
||||
setLoading(true);
|
||||
let html = await RenderTemplate(emailConfig.template, bodyshop);
|
||||
let html = await RenderTemplate(emailConfig.template, bodyshop, true);
|
||||
|
||||
const response = await axios.post("/render/inlinecss", {
|
||||
html: html,
|
||||
url: `${window.location.protocol}://${window.location.host}/`,
|
||||
});
|
||||
|
||||
console.log("response", response);
|
||||
setMessageOptions({
|
||||
...emailConfig.messageOptions,
|
||||
...defaultEmailFrom,
|
||||
html: html,
|
||||
html: response.data,
|
||||
fileList: [],
|
||||
});
|
||||
setLoading(false);
|
||||
|
||||
@@ -25,14 +25,14 @@ export function PrintCenterItemComponent({
|
||||
disabled,
|
||||
}) {
|
||||
const renderToNewWindow = async () => {
|
||||
const html = await RenderTemplate(
|
||||
await RenderTemplate(
|
||||
{
|
||||
name: item.key,
|
||||
variables: { id: id },
|
||||
},
|
||||
bodyshop
|
||||
);
|
||||
displayTemplateInWindow(html);
|
||||
// displayTemplateInWindow(html);
|
||||
};
|
||||
|
||||
if (disabled) return <li className="print-center-item">{item.title} </li>;
|
||||
|
||||
@@ -22,11 +22,7 @@ export default function ShopTemplateSaveButton({
|
||||
html: data.html,
|
||||
url: `${window.location.protocol}://${window.location.host}/`,
|
||||
});
|
||||
console.log(
|
||||
"🚀 ~ file: shop-template-editor-save-button.component.jsx ~ line 25 ~ emailEditorRef.current.exportHtml ~ inlineHtml",
|
||||
response
|
||||
);
|
||||
|
||||
|
||||
const result = await updateTemplate({
|
||||
variables: {
|
||||
templateId: templateId,
|
||||
|
||||
Reference in New Issue
Block a user