Skip to content

Commit

Permalink
add url for source
Browse files Browse the repository at this point in the history
  • Loading branch information
nanli-emory committed Apr 6, 2024
1 parent 6c3b244 commit 58c1034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dicom-connect/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ function initialize() {
// add source and study id
data.forEach(elt=>{
elt.source=src.name
elt.url=src.url
elt.studyId=params.studyId
elt.status='loading' // 'loading', 'unsync', 'syncing', 'done'
})
Expand All @@ -187,7 +188,7 @@ function initialize() {
// return btn
const seriesId = row['0020000E']['Value'][0];
const modality = row['00080060']['Value'][0];
return `<div class="icon-center"><button onClick="syncSeries('${row.source}', '${row.studyId}', '${seriesId}', '${modality}')" class="btn btn-sm btn-primary" title="Sync Series"><i class="fas fa-cloud-download-alt"></i></button></div>`; //<i class="fas fa-cloud-download-alt"></i>
return `<div class="icon-center"><button onClick="syncSeries('${row.url}', '${row.studyId}', '${seriesId}', '${modality}')" class="btn btn-sm btn-primary" title="Sync Series"><i class="fas fa-cloud-download-alt"></i></button></div>`; //<i class="fas fa-cloud-download-alt"></i>
case 'syncing':
// return downloading
// return '<div class="icon-center"><i class="fas fa-pen"></i></div>';
Expand Down

0 comments on commit 58c1034

Please sign in to comment.