Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Levitas committed Jul 10, 2024
1 parent dc80743 commit 66288a1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ui/src/Finalize.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,22 +263,12 @@ export default defineComponent({
);
},
// sendOpenneuro() {
// const url =
// this.config.apihost + '/download/' + this.session._id + '/bids/' + this.ezbids.datasetDescription.Name;
// const fullurl = new URL(url, document.baseURI).href;
// window.open('https://openneuro.org/import?url=' + encodeURI(fullurl));
async sendOpenneuro() {
try {
console.log('test')
const res = await axios.get(`${this.config.apihost}/download/${this.session._id}/token`);
const shortLivedJWT = res.data;
console.log(res)
const url = `${this.config.apihost}/download/${this.session._id}/bids/${this.ezbids.datasetDescription.Name}?token=${shortLivedJWT}`;
console.log(url)
console.log('final update check')
const fullurl = new URL(url, document.baseURI).href;
window.open('https://openneuro.org/import?url=' + encodeURI(fullurl));
Expand Down

0 comments on commit 66288a1

Please sign in to comment.