Skip to content

Commit

Permalink
Merge branch 'main' into jsonpage11
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfang97 authored Sep 26, 2023
2 parents dd737d6 + a49a38b commit 24a8e75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/components/Viewing/Modals/DownloadModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ export default function DownloadModal(properties) {
status: "downloading"
};

/*

const pluginData = {
uri: properties.uri,
instanceUrl: `${publicRuntimeConfig.backend}/`,
size: 1,
type: properties.type
};
*/


dispatch(downloadFiles([item], true, pluginName, pluginData));
}
Expand All @@ -92,7 +92,7 @@ export default function DownloadModal(properties) {
if (properties.type === "Module") selectOptions.push({ value: "image", label: "Download Image" });
if (properties.type === "Attachment") selectOptions.push({ value: "download", label: "Download Attachment" });

/*

axios({
method: 'GET',
url: `${publicRuntimeConfig.backend}/admin/plugins`,
Expand Down Expand Up @@ -123,7 +123,7 @@ export default function DownloadModal(properties) {
}).catch(error => {return;});
}
}).catch(error => {return;});
*/


return selectOptions;
}
Expand Down

0 comments on commit 24a8e75

Please sign in to comment.