06-10
This commit is contained in:
parent
72bb28b416
commit
01c89d413f
|
|
@ -8,6 +8,8 @@ pnpm-debug.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
|
private
|
||||||
|
|
||||||
node
|
node
|
||||||
dist
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
|
|
@ -23,3 +25,5 @@ dist-ssr
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
"build:skip-check": "tsc --noEmit && vite build",
|
"build:skip-check": "tsc --noEmit && vite build",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview",
|
||||||
|
"deploy": "npm run build:skip-check && scp -i private\\SME-Web.pem -r dist root@52.10.89.255:/var/www/sme"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dnd-kit/core": "^6.3.1",
|
"@dnd-kit/core": "^6.3.1",
|
||||||
|
|
|
||||||
|
|
@ -904,14 +904,15 @@ const SignDocument = () => {
|
||||||
</>}
|
</>}
|
||||||
|
|
||||||
|
|
||||||
{requiredFilled && !transparentTags && recipient?.type !== "CC" && <>
|
{!transparentTags && recipient?.type !== "CC" && <>
|
||||||
<div className={`absolute z-50 ${requiredFilled ? "bottom-0" : "bottom-[-100px] hidden"} left-0 bg-[var(--primary)] w-full flex justify-around items-center transition-all duration-300 px-2.5`}>
|
<div className={`absolute z-50 ${requiredFilled ? "bottom-0 opacity-100" : "bottom-[-100px] opacity-5"} left-0 bg-[var(--primary)] w-full flex justify-around items-center transition-all duration-300 px-2.5`}>
|
||||||
<div className="py-6 text-white">
|
<div className="py-6 text-white">
|
||||||
<p className="text-2xl font-semibold">All Set to Wrap This Up?</p>
|
<p className="text-2xl font-semibold">All Set to Wrap This Up?</p>
|
||||||
<p className="text-sm">You've completed the required fields. Review your work, then select Finish.</p>
|
<p className="text-sm">You've completed the required fields. Review your work, then select Finish.</p>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
onClick={handleFormSubmit}
|
onClick={handleFormSubmit}
|
||||||
|
disabled={requiredFilled}
|
||||||
className="font-semibold text-sm px-8 py-2 bg-slate-100 rounded-md text-[var(--primary)]">Finish</button>
|
className="font-semibold text-sm px-8 py-2 bg-slate-100 rounded-md text-[var(--primary)]">Finish</button>
|
||||||
</div>
|
</div>
|
||||||
</>}
|
</>}
|
||||||
|
|
|
||||||
|
|
@ -58,11 +58,11 @@ const Contacts = () => {
|
||||||
try {
|
try {
|
||||||
let res = await api.delete(`/api/v1/accounts/${activeAccountId}/contacts/${contactId}`)
|
let res = await api.delete(`/api/v1/accounts/${activeAccountId}/contacts/${contactId}`)
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
toast.error("Contact delete successfully!", {
|
// toast.error("Contact delete successfully!", {
|
||||||
position: "top-center",
|
// position: "top-center",
|
||||||
autoClose: 1500,
|
// autoClose: 1500,
|
||||||
transition: Bounce,
|
// transition: Bounce,
|
||||||
});
|
// });
|
||||||
fetchContacts()
|
fetchContacts()
|
||||||
setOpenMenuId(null);
|
setOpenMenuId(null);
|
||||||
}
|
}
|
||||||
|
|
@ -88,27 +88,27 @@ const Contacts = () => {
|
||||||
let res;
|
let res;
|
||||||
setCreateAndInviteLoader(true);
|
setCreateAndInviteLoader(true);
|
||||||
if (type === 'Edit') {
|
if (type === 'Edit') {
|
||||||
res = await api.put(`/api/v1/accounts/${activeAccountId}/contacts`, [data])
|
res = await api.put(`/api/v1/accounts/${activeAccountId}/contacts`, {contacts: [data], empty: true})
|
||||||
} else {
|
} else {
|
||||||
res = await api.post(`/api/v1/accounts/${activeAccountId}/contacts`, [data]);
|
res = await api.post(`/api/v1/accounts/${activeAccountId}/contacts`, {contacts: [data], empty: true});
|
||||||
}
|
}
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
toast.success('Contact created successfully!', {
|
// toast.success('Contact created successfully!', {
|
||||||
position: "top-center",
|
// position: "top-center",
|
||||||
autoClose: 1500,
|
// autoClose: 1500,
|
||||||
transition: Bounce,
|
// transition: Bounce,
|
||||||
});
|
// });
|
||||||
setShowModal(false)
|
setShowModal(false)
|
||||||
fetchContacts();
|
fetchContacts();
|
||||||
}
|
}
|
||||||
// return res;
|
// return res;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Error creating contact", err);
|
console.error("Error creating contact", err);
|
||||||
toast.error("Failed to create contact", {
|
// toast.error("Failed to create contact", {
|
||||||
position: "top-center",
|
// position: "top-center",
|
||||||
autoClose: 1500,
|
// autoClose: 1500,
|
||||||
transition: Bounce,
|
// transition: Bounce,
|
||||||
});
|
// });
|
||||||
throw err;
|
throw err;
|
||||||
} finally {
|
} finally {
|
||||||
setCreateAndInviteLoader(false);
|
setCreateAndInviteLoader(false);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
import { IoMdClose } from "react-icons/io";
|
|
||||||
|
|
||||||
import RecipientAddCard from './RecipientAddCard';
|
|
||||||
import RecipientCards from './RecipientCards';
|
|
||||||
import SelectedDocuments from "./SelectedDocuments";
|
import SelectedDocuments from "./SelectedDocuments";
|
||||||
import api from "../../../config/api";
|
import api from "../../../config/api";
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
|
|
@ -19,8 +15,8 @@ import { SignTypeEnum } from "../../../utlity/types";
|
||||||
import { RiPencilFill } from "react-icons/ri";
|
import { RiPencilFill } from "react-icons/ri";
|
||||||
import SelfSignWarnModal from "./SelfSignWarnModal";
|
import SelfSignWarnModal from "./SelfSignWarnModal";
|
||||||
import AdvancedOptions from "./AdvancedOptions";
|
import AdvancedOptions from "./AdvancedOptions";
|
||||||
import getMinRoutingOrder from "../../../utlity/commonUtils";
|
// import getMinRoutingOrder from "../../../utlity/commonUtils";
|
||||||
import MessageCon from "./MessageCon";
|
// import MessageCon from "./MessageCon";
|
||||||
import RecipientsCon from "./RecipientsCon";
|
import RecipientsCon from "./RecipientsCon";
|
||||||
import { VscClose } from "react-icons/vsc";
|
import { VscClose } from "react-icons/vsc";
|
||||||
import signSessionRedirect from "../../../utlity/signSessionRedirect";
|
import signSessionRedirect from "../../../utlity/signSessionRedirect";
|
||||||
|
|
@ -245,12 +241,13 @@ const ProcessStepOne = () => {
|
||||||
|
|
||||||
dispatch(showLoader("Processing Recipients..."));
|
dispatch(showLoader("Processing Recipients..."));
|
||||||
|
|
||||||
let minRoutingOrder = getMinRoutingOrder({ recipients: selectedRecipients });
|
// let minRoutingOrder = getMinRoutingOrder({ recipients: selectedRecipients });
|
||||||
|
|
||||||
const recipientsData = selectedRecipients.map((recipient, index) => ({
|
const recipientsData = selectedRecipients.map((recipient, index) => ({
|
||||||
id: "id" in recipient ? recipient.id : null,
|
id: "id" in recipient ? recipient.id : null,
|
||||||
routingOrder: "routingOrder" in recipient && recipient.routingOrder ? recipient.routingOrder : 1,
|
routingOrder: "routingOrder" in recipient && recipient.routingOrder ? recipient.routingOrder : 1,
|
||||||
provideOwnTags: userData.email === recipient.email && (recipient.routingOrder ?? 1) === minRoutingOrder ? true : false,
|
// provideOwnTags: userData.email === recipient.email && (recipient.routingOrder ?? 1) === minRoutingOrder ? true : false,
|
||||||
|
provideOwnTags: false,
|
||||||
type: recipient.type,
|
type: recipient.type,
|
||||||
firstName: recipient.firstName,
|
firstName: recipient.firstName,
|
||||||
lastName: recipient.lastName,
|
lastName: recipient.lastName,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ const LabelAttr: React.FC<LabelAttrInt> = ({ label, handlePropertyChange }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<label className='font-medium'>Label</label>
|
<label className='font-medium capitalize'>Label</label>
|
||||||
<input
|
<input
|
||||||
value={label}
|
value={label}
|
||||||
onChange={(e) => handlePropertyChange('label', e.target.value)}
|
onChange={(e) => handlePropertyChange('label', e.target.value)}
|
||||||
|
|
|
||||||
|
|
@ -55,9 +55,6 @@
|
||||||
--mainPrimaryBtn : #077DEC;
|
--mainPrimaryBtn : #077DEC;
|
||||||
--dashBoardStartNowBtn : #077DEC;
|
--dashBoardStartNowBtn : #077DEC;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
|
|
@ -446,5 +443,4 @@ input[type=number] {
|
||||||
.__floater__body > div > button:last-child {
|
.__floater__body > div > button:last-child {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* JoyRide - END */
|
/* JoyRide - END */
|
||||||
|
|
@ -4,7 +4,7 @@ import tailwindcss from '@tailwindcss/vite'
|
||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: './',
|
base: '/',
|
||||||
plugins: [react(), tailwindcss()],
|
plugins: [react(), tailwindcss()],
|
||||||
server: {
|
server: {
|
||||||
allowedHosts: [
|
allowedHosts: [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue