MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / handleSignatureType

Function handleSignatureType

apps/OpenSign/src/constant/Utils.js:3602–3612  ·  view source on GitHub ↗
(tenantSignTypes, signatureType)

Source from the content-addressed store, hash-verified

3600
3601// `handleSignatureType` is used to return update signature types as per tenant or user
3602export async function handleSignatureType(tenantSignTypes, signatureType) {
3603 const docSignTypes = signatureType || signatureTypes;
3604 let updatedSignatureType = signatureType || signatureTypes;
3605 if (tenantSignTypes?.length > 0) {
3606 updatedSignatureType = tenantSignTypes?.map((item) => {
3607 const match = docSignTypes.find((data) => data.name === item.name);
3608 return match ? { ...item, enabled: match.enabled } : item;
3609 });
3610 }
3611 return updatedSignatureType;
3612}
3613
3614// `formatDateToDdMmmYyyy` is used to format date to dd-mmm-yyyy
3615export const formatDateToDdMmmYyyy = (date) => {

Callers 6

getDocumentDetailsFunction · 0.90
TemplatePlaceholderFunction · 0.90
getDocumentDetailsFunction · 0.90
PreferencesFunction · 0.90
DocumentsReportFunction · 0.90
handleBulkSendFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected