Skip to content

🔥 The free & Open Source DocuSign alternative

Merge branch 'staging' into patch-1

prafull-opensignlabs87ee2e881e73
diff --cc apps/OpenSign/src/constant/Utils.js
index a0b445802,91ea7d851..89a4bac36
--- a/apps/OpenSign/src/constant/Utils.js
+++ b/apps/OpenSign/src/constant/Utils.js
@@@ -1792,13 -1777,19 +1777,29 @@@ export const handleCopyNextToWidget =
setXyPostion(updatePlaceholder);
}
};
+
++
+export const getFileName = (fileUrl) => {
+ if (fileUrl) {
+ const url = new URL(fileUrl);
+ const filename = url.pathname.substring(url.pathname.indexOf("_") + 1);
+ return filename || "";
+ } else {
+ return "";
++
+ //fetch tenant app logo from `partners_Tenant` class by domain name
+ export const getAppLogo = async () => {
+ const domainName = window.location.host;
+ try {
+ const tenantCreditsQuery = new Parse.Query("partners_Tenant");
+ tenantCreditsQuery.equalTo("Domain", domainName);
+ const res = await tenantCreditsQuery.first();
+
+ if (res) {
+ const updateRes = JSON.parse(JSON.stringify(res));
+ return updateRes?.Logo;
+ }
+ } catch (e) {
+ return null;
}
};