Merge branch 'master' of https://github.com/merelendor/evoleasing-account
This commit is contained in:
commit
9c87dd5fc9
@ -66,7 +66,7 @@ export default class DigitalCertificates extends React.Component
|
||||
{
|
||||
if(cert.Subject['INN'] !== undefined && cert.Subject['INN'] !== null && cert.Subject['INN'] !== "")
|
||||
{
|
||||
if(company.inn === cert.Subject['INN'])
|
||||
if(main.inn === cert.Subject['INN'])
|
||||
{
|
||||
callback(null, [ { id: certificate.id, fields: cert.Subject, valid_to_date: moment(cert.ValidToDate).format("DD.MM.YYYY") } ]);
|
||||
}
|
||||
@ -286,7 +286,7 @@ export default class DigitalCertificates extends React.Component
|
||||
<FormMessage type="moderate" title="Ошибка" message={ <>Плагин КриптоПРО не активирован, пожалуйста, обновите страницу и подтвердите разрешение для сайта на доступ к списку сертификатов.</> }/>
|
||||
) }
|
||||
{ certificates_error === "ISSUED" && (
|
||||
<FormMessage type="moderate" title="Ошибка" message={ <>Анкету необходимо подписать по ЭЦП сертификатом юридического лица с ИНН: { company.inn }, выданного: { head_person.lastname } { head_person.firstname } { head_person.middlename }. Такой сертификат не найден.</> }/>
|
||||
<FormMessage type="moderate" title="Ошибка" message={ <>Анкету необходимо подписать по ЭЦП сертификатом юридического лица с ИНН: { main.inn }, выданного: { head_person.lastname } { head_person.firstname } { head_person.middlename }. Такой сертификат не найден.</> }/>
|
||||
) }
|
||||
{ certificates_error === "MISMATCH" && (
|
||||
<FormMessage type="moderate" title="Ошибка" message={ <>Подписант не соответствует указанному подписанту в анкете.</> }/>
|
||||
|
||||
@ -30,7 +30,6 @@ const WrappedApp = (props) =>
|
||||
|
||||
return (
|
||||
<>
|
||||
<link href="//chat.autofaq.ai/widget/static/css/main.css" rel="stylesheet" />
|
||||
{ !props.observer && (
|
||||
<>
|
||||
<Script id="yandex-metrica" strategy={'afterInteractive'}>
|
||||
@ -45,32 +44,37 @@ const WrappedApp = (props) =>
|
||||
console.log(ym, ${ process.env.NEXT_PUBLIC_YANDEX_METRIKA_ID });
|
||||
`}
|
||||
</Script>
|
||||
<Script id="auto-faq" strategy={'afterInteractive'}>
|
||||
{`
|
||||
window.widgetHost = "https://chat.autofaq.ai";
|
||||
window.widgetServiceId = "${ process.env.NEXT_PUBLIC_AUTOFAQ_AI_SERVICE_ID }";
|
||||
window.widgetChannelId = "${ process.env.NEXT_PUBLIC_AUTOFAQ_AI_CHANNEL_ID }";
|
||||
{ process.env.NEXT_PUBLIC_AUTOFAQ_AI_ENABLED == 1 && (
|
||||
<>
|
||||
<link href="//chat.autofaq.ai/widget/static/css/main.css" rel="stylesheet" />
|
||||
<Script id="auto-faq" strategy={'afterInteractive'}>
|
||||
{`
|
||||
window.widgetHost = "https://chat.autofaq.ai";
|
||||
window.widgetServiceId = "${ process.env.NEXT_PUBLIC_AUTOFAQ_AI_SERVICE_ID }";
|
||||
window.widgetChannelId = "${ process.env.NEXT_PUBLIC_AUTOFAQ_AI_CHANNEL_ID }";
|
||||
|
||||
window.widgetUserLogin = ${ props.acc !== null ? `"${ props.acc }"` : "undefined" };
|
||||
window.widgetUserEmail = ${ props.email !== null ? `"${ props.email }"` : "undefined" };
|
||||
window.widgetUserPayload = ${ props.acc !== null ? `{ "acc_number": "${ props.acc }" }` : "undefined" };
|
||||
window.widgetUserLogin = ${ props.acc !== null ? `"${ props.acc }"` : "undefined" };
|
||||
window.widgetUserEmail = ${ props.email !== null ? `"${ props.email }"` : "undefined" };
|
||||
window.widgetUserPayload = ${ props.acc !== null ? `{ "acc_number": "${ props.acc }" }` : "undefined" };
|
||||
|
||||
console.log("widget", {
|
||||
widgetHost: window.widgetHost,
|
||||
widgetServiceId: window.widgetServiceId,
|
||||
widgetChannelId: window.widgetChannelId,
|
||||
widgetUserLogin: window.widgetUserLogin,
|
||||
widgetUserEmail: window.widgetUserEmail,
|
||||
widgetUserPayload: window.widgetUserPayload,
|
||||
});
|
||||
console.log("widget", {
|
||||
widgetHost: window.widgetHost,
|
||||
widgetServiceId: window.widgetServiceId,
|
||||
widgetChannelId: window.widgetChannelId,
|
||||
widgetUserLogin: window.widgetUserLogin,
|
||||
widgetUserEmail: window.widgetUserEmail,
|
||||
widgetUserPayload: window.widgetUserPayload,
|
||||
});
|
||||
|
||||
const script = document.createElement('script');
|
||||
script.id = "autofaqWidget";
|
||||
script.type = "text/javascript";
|
||||
script.src = "https://chat.autofaq.ai/widget/static/js/main.js";
|
||||
document.head.appendChild(script);
|
||||
`}
|
||||
</Script>
|
||||
const script = document.createElement('script');
|
||||
script.id = "autofaqWidget";
|
||||
script.type = "text/javascript";
|
||||
script.src = "https://chat.autofaq.ai/widget/static/js/main.js";
|
||||
document.head.appendChild(script);
|
||||
`}
|
||||
</Script>
|
||||
</>
|
||||
) }
|
||||
<noscript>
|
||||
<div>
|
||||
<img src={`https://mc.yandex.ru/watch/${ process.env.NEXT_PUBLIC_YANDEX_METRIKA_ID }`} style={{ position:'absolute', left:'-9999px' }} alt=""/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user