@gen3/frontend 0.10.61 → 0.10.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +15 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/features/DataLibrary/selection/exportActions.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/selection/exportActions.js +20 -8
- package/dist/dts/features/DataLibrary/selection/exportActions.js.map +1 -1
- package/dist/esm/index.js +15 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -17953,10 +17953,8 @@ const sendExistingPFBToURL = async (validatedSelections, params, done = ()=>null
|
|
|
17953
17953
|
return;
|
|
17954
17954
|
}
|
|
17955
17955
|
const { guid, id } = validatedSelections[0];
|
|
17956
|
-
console.log('sendExistingPFBToURL', guid, id, targetURLTemplate);
|
|
17957
17956
|
// get the pre-signed URL for the selected PFB
|
|
17958
17957
|
try {
|
|
17959
|
-
console.log('fetchFencePresignedURL');
|
|
17960
17958
|
const presignedURL = await core.fetchFencePresignedURL({
|
|
17961
17959
|
guid: guid ?? id,
|
|
17962
17960
|
onAbort: onAbort,
|
|
@@ -17967,15 +17965,26 @@ const sendExistingPFBToURL = async (validatedSelections, params, done = ()=>null
|
|
|
17967
17965
|
// variable in it.
|
|
17968
17966
|
const signedURL = encodeURIComponent(presignedURL);
|
|
17969
17967
|
const targetURL = targetURLTemplate.replace(PRESIGNED_URL_TEMPLATE_VARIABLE, signedURL);
|
|
17970
|
-
console.log('targetURL', targetURL);
|
|
17971
17968
|
return new Promise(()=>{
|
|
17972
17969
|
if (window) window.open(targetURL, '_blank', 'noopener,noreferrer');
|
|
17973
17970
|
if (done) done(targetURL);
|
|
17974
17971
|
});
|
|
17975
|
-
} catch (
|
|
17976
|
-
|
|
17972
|
+
} catch (error) {
|
|
17973
|
+
if (error instanceof core.HTTPError) {
|
|
17974
|
+
notifications.notifications.show({
|
|
17975
|
+
id: 'data-library-send-existing-pfb-to-url-validate-length',
|
|
17976
|
+
position: 'bottom-center',
|
|
17977
|
+
withCloseButton: true,
|
|
17978
|
+
autoClose: 5000,
|
|
17979
|
+
title: 'Action Error',
|
|
17980
|
+
message: error.status in HTTPUserFriendlyErrorMessages ? HTTPUserFriendlyErrorMessages[error.status] : 'An error has occured to prevent exporting PFB',
|
|
17981
|
+
color: 'red',
|
|
17982
|
+
loading: false
|
|
17983
|
+
});
|
|
17984
|
+
}
|
|
17985
|
+
console.error('Error sending PFB to URL', error);
|
|
17977
17986
|
return new Promise(()=>{
|
|
17978
|
-
error(
|
|
17987
|
+
error(error);
|
|
17979
17988
|
});
|
|
17980
17989
|
}
|
|
17981
17990
|
};
|