Jira support component.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<babeledit_project version="1.2" be_version="2.7.1">
|
||||
<babeledit_project be_version="2.7.1" version="1.2">
|
||||
<!--
|
||||
|
||||
BabelEdit project file
|
||||
@@ -25744,6 +25744,27 @@
|
||||
</translation>
|
||||
</translations>
|
||||
</concept_node>
|
||||
<concept_node>
|
||||
<name>estimate_followup</name>
|
||||
<definition_loaded>false</definition_loaded>
|
||||
<description></description>
|
||||
<comment></comment>
|
||||
<default_text></default_text>
|
||||
<translations>
|
||||
<translation>
|
||||
<language>en-US</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
<translation>
|
||||
<language>es-MX</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
<translation>
|
||||
<language>fr-CA</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
</translations>
|
||||
</concept_node>
|
||||
<concept_node>
|
||||
<name>filing_coversheet_portrait</name>
|
||||
<definition_loaded>false</definition_loaded>
|
||||
@@ -26059,6 +26080,27 @@
|
||||
</translation>
|
||||
</translations>
|
||||
</concept_node>
|
||||
<concept_node>
|
||||
<name>qc_sheet</name>
|
||||
<definition_loaded>false</definition_loaded>
|
||||
<description></description>
|
||||
<comment></comment>
|
||||
<default_text></default_text>
|
||||
<translations>
|
||||
<translation>
|
||||
<language>en-US</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
<translation>
|
||||
<language>es-MX</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
<translation>
|
||||
<language>fr-CA</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
</translations>
|
||||
</concept_node>
|
||||
<concept_node>
|
||||
<name>ro_with_description</name>
|
||||
<definition_loaded>false</definition_loaded>
|
||||
|
||||
@@ -1,29 +1,31 @@
|
||||
import React, { useEffect } from "react";
|
||||
|
||||
export default function JiraSupportComponent() {
|
||||
useScript();
|
||||
|
||||
return <div>Jira Temp Widget</div>;
|
||||
}
|
||||
|
||||
const useScript = () => {
|
||||
useEffect(() => {
|
||||
console.log("Creating JIRA widget.");
|
||||
const script = document.createElement("script");
|
||||
|
||||
script.src = "https://jsd-widget.atlassian.com/assets/embed.js";
|
||||
// script.attributes.setNamedItem({ "data-jsd-embedded": true });
|
||||
// script.attributes.setNamedItem({
|
||||
// "data-key": "d69bb65c-1dd3-483f-b109-66a970d03f44",
|
||||
// });
|
||||
// script.attributes.setNamedItem({
|
||||
// "data-base-url": "https://jsd-widget.atlassian.com",
|
||||
// });
|
||||
|
||||
// script["data-jsd-embedded"] = true;
|
||||
// script["data-key"] = "d69bb65c-1dd3-483f-b109-66a970d03f44";
|
||||
// script["data-key"] = "51adb36e-ee16-46b1-a4c6-4b6d5fcd8530";
|
||||
// script["data-base-url"] = "https://jsd-widget.atlassian.com";
|
||||
script.async = true;
|
||||
|
||||
document.body.appendChild(script);
|
||||
// script.attributes.setNamedItem("data-jsd-embedded");
|
||||
// script.attributes.setNamedItem("data-key");
|
||||
// script.attributes.setNamedItem("data-base-url");
|
||||
|
||||
script.setAttribute("data-jsd-embedded", true);
|
||||
script.setAttribute("data-key", "51adb36e-ee16-46b1-a4c6-4b6d5fcd8530");
|
||||
script.setAttribute("data-base-url", "https://jsd-widget.atlassian.com");
|
||||
|
||||
document.head.appendChild(script);
|
||||
return () => {
|
||||
document.body.removeChild(script);
|
||||
document.head.removeChild(script);
|
||||
};
|
||||
}, []);
|
||||
|
||||
return <div></div>;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -10,7 +10,7 @@ import Axios from "axios";
|
||||
import Dinero from "dinero.js";
|
||||
import moment from "moment";
|
||||
import queryString from "query-string";
|
||||
import React, { lazy, Suspense, useState, useEffect } from "react";
|
||||
import React, { lazy, Suspense, useEffect, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { FaHardHat, FaRegStickyNote, FaShieldAlt } from "react-icons/fa";
|
||||
import { connect } from "react-redux";
|
||||
@@ -95,7 +95,6 @@ export function JobsDetailPage({
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
console.log("Resetting jobs form as job has changed.");
|
||||
form.resetFields();
|
||||
form.resetFields();
|
||||
}, [form, job]);
|
||||
|
||||
@@ -7,7 +7,6 @@ import UserValidatePwReset from "../../components/user-validate-pw-reset/user-va
|
||||
export default function ResetPassword() {
|
||||
const searchParams = queryString.parse(useLocation().search);
|
||||
const { mode, oobCode } = searchParams;
|
||||
console.log("ResetPassword -> mode, oobCode", mode, oobCode);
|
||||
|
||||
if (mode === "resetPassword")
|
||||
return <UserValidatePwReset oobCode={oobCode} />;
|
||||
|
||||
@@ -1558,6 +1558,7 @@
|
||||
"diagnostic_authorization": "Diagnostic Authorization",
|
||||
"estimate": "Estimate Only",
|
||||
"estimate_detail": "Estimate Details",
|
||||
"estimate_followup": "Estimate Followup",
|
||||
"filing_coversheet_portrait": "Filing Coversheet (Portrait)",
|
||||
"final_invoice": "Final Invoice",
|
||||
"fippa_authorization": "FIPPA Authorization",
|
||||
@@ -1573,6 +1574,7 @@
|
||||
"payment_receipt": "Payment Receipt",
|
||||
"payment_request": "Payment Request",
|
||||
"payments_by_job": "Job Payments",
|
||||
"qc_sheet": "Quality Control Sheet",
|
||||
"ro_with_description": "RO Summary with Descriptions",
|
||||
"supplement_request": "Supplement Request",
|
||||
"thirdpartypayer": "Third Party Payer",
|
||||
|
||||
@@ -1558,6 +1558,7 @@
|
||||
"diagnostic_authorization": "",
|
||||
"estimate": "",
|
||||
"estimate_detail": "",
|
||||
"estimate_followup": "",
|
||||
"filing_coversheet_portrait": "",
|
||||
"final_invoice": "",
|
||||
"fippa_authorization": "",
|
||||
@@ -1573,6 +1574,7 @@
|
||||
"payment_receipt": "",
|
||||
"payment_request": "",
|
||||
"payments_by_job": "",
|
||||
"qc_sheet": "",
|
||||
"ro_with_description": "",
|
||||
"supplement_request": "",
|
||||
"thirdpartypayer": "",
|
||||
|
||||
@@ -1558,6 +1558,7 @@
|
||||
"diagnostic_authorization": "",
|
||||
"estimate": "",
|
||||
"estimate_detail": "",
|
||||
"estimate_followup": "",
|
||||
"filing_coversheet_portrait": "",
|
||||
"final_invoice": "",
|
||||
"fippa_authorization": "",
|
||||
@@ -1573,6 +1574,7 @@
|
||||
"payment_receipt": "",
|
||||
"payment_request": "",
|
||||
"payments_by_job": "",
|
||||
"qc_sheet": "",
|
||||
"ro_with_description": "",
|
||||
"supplement_request": "",
|
||||
"thirdpartypayer": "",
|
||||
|
||||
@@ -174,6 +174,20 @@ export const TemplateList = (type, context) => {
|
||||
key: "filing_coversheet_portrait",
|
||||
disabled: false,
|
||||
},
|
||||
qc_sheet: {
|
||||
title: i18n.t("printcenter.jobs.qc_sheet"),
|
||||
description: "All Jobs Notes",
|
||||
subject: i18n.t("printcenter.jobs.qc_sheet"),
|
||||
key: "qc_sheet",
|
||||
disabled: false,
|
||||
},
|
||||
estimate_followup: {
|
||||
title: i18n.t("printcenter.jobs.estimate_followup"),
|
||||
description: "All Jobs Notes",
|
||||
subject: i18n.t("printcenter.jobs.estimate_followup"),
|
||||
key: "estimate_followup",
|
||||
disabled: false,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(!type || type === "job_special"
|
||||
|
||||
Reference in New Issue
Block a user