Skip to content

Commit

Permalink
don't redir if goes back, save annots on save label
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jan 30, 2025
1 parent cdd8637 commit 7c6bac5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/labeling/roiMarking.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ function clickSavebtnHandler() {
}

async function saveAnnotation(annotation) {
stopLabeling()
Loading.open(document.body, 'Saving Annotations...');
// user and date time
// const creator = getUserId();
Expand Down Expand Up @@ -638,7 +639,8 @@ async function loadingData() {
const labelId = $D.params.labelId;
const slideId = $D.params.slideId;

// redir user out if they've already done this
// (don't?) redir user out if they've already done this
/*
$CAMIC.store.findLabelingAnnotation({"parent": labelId, "provenance.image.slide":slideId, "creator": getUserId() } ).then(x=>{
console.log(x)
if (x.length>0){
Expand All @@ -647,6 +649,7 @@ async function loadingData() {
window.location.href = `./mark_roi_pick.html?slideId=${$D.params.slideId}&collectionId=${$D.params.collectionId}`;
}
});
*/
//
const labelData = await $CAMIC.store.findLabeling({_id: labelId}).then((d)=>d[0]);

Expand Down

0 comments on commit 7c6bac5

Please sign in to comment.