Skip to content

Commit

Permalink
moving to roiSelect w changes
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Oct 6, 2023
1 parent 3b26821 commit 3729a34
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/collection/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
card.classList.add("card");
if (d.task == "roiSelection"){
workflow_title = "ROIs Selection";
workflow_url = `../labeling/pitfallsTable.html?collectionId=${d._id.$oid}`
workflow_url = `../labeling/roiSelectTable.html?collectionId=${d._id.$oid}`
card.classList.add("pitfalls");
}

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions apps/labeling/roiSelection.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ <h5 class="modal-title" style="font-size: 1.5rem;">Modal title</h5>
</div>
<div style="padding: 0 0 0.5rem 2.5rem">
<label>
<input disabled type="radio" id="tt_radio_4" name="tissue_type" class="tissue_check" data-show-pitfalls="1" value="No proximal tumor" onchange="console.log(this)" /> No Proximal Tumor </label>
<input disabled type="radio" id="tt_radio_4" name="tissue_type" class="tissue_check" data-show-pitfalls="1" value="No proximal tumor" onchange="console.log(this)" /> No Proximal Tumor (Within 500 μm) </label>
</div>
<p id="new_roi_warn">
<b>Double click a location to create or reposition an ROI</b>
Expand Down Expand Up @@ -547,8 +547,8 @@ <h5 class="modal-title" style="font-size: 1.5rem;">Modal title</h5>
const url = new URL(window.location.href);
$D.params = getUrlVars();
$D.pages = {};
$D.pages.home = `./pitfallsTable.html?collectionId=${$D.params.collectionId}`;
$D.pages.table = `./pitfallsTable.html?collectionId=${$D.params.collectionId}`;
$D.pages.home = `./roiSelectTable.html?collectionId=${$D.params.collectionId}`;
$D.pages.table = `./roiSelectTable.html?collectionId=${$D.params.collectionId}`;
// no slide Id error
if ($D.params && $D.params.slideId) {
// normal initialization starts
Expand Down
4 changes: 2 additions & 2 deletions apps/labeling/roiSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async function initialize() {
// alert and return if no mpp
if (!$CAMIC.slideData.mpp){
alert("This image doesn't have the microns per pixel (mpp) defined. Please resolve this issue before working with this image.");
window.location = `./pitfallsTable.html?collectionId=${$D.params.collectionId}`;
window.location = `./roiSelectTable.html?collectionId=${$D.params.collectionId}`;
}
}
}, 500);
Expand Down Expand Up @@ -1442,5 +1442,5 @@ function addAnnot(e) {
}

document.getElementById('quit').addEventListener('click', (x)=>{
window.location = `./pitfallsTable.html?collectionId=${$D.params.collectionId}`;
window.location = `./roiSelectTable.html?collectionId=${$D.params.collectionId}`;
});

0 comments on commit 3729a34

Please sign in to comment.