Implementing saving behavior per active viewport
This commit is contained in:
1 parent
98480d134b
commit
5dc2f8dc9c
13 files changed
+66
-15
No files matched your search
@@ -3,6 +3,7 @@ import './longitudinalStudyListStudy/longitudinalStudyListStudy.html';
|
||||
import './longitudinalStudyListStudy/longitudinalStudyListStudy.styl';
|
||||
import './longitudinalStudyListStudy/longitudinalStudyListStudy.js';
|
||||
|
||||
import './longitudinalViewportOverlay/imageViewportIcons.html';
|
||||
import './longitudinalViewportOverlay/longitudinalViewportOverlay.html';
|
||||
import './longitudinalViewportOverlay/longitudinalViewportOverlay.js';
|
||||
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
<template name="imageViewportIcons"></template>
|
||||
+5
-4
@@ -9,13 +9,14 @@
|
||||
<div class="topright dicomTag">
|
||||
<div>{{studyDescription}}</div>
|
||||
<div>{{formatDA studyDate}} {{formatTM studyTime}}</div>
|
||||
{{#if linked}}
|
||||
<div class="link-icon">
|
||||
<div class="icons-section">
|
||||
{{>imageViewportIcons this}}
|
||||
{{#if linked}}
|
||||
<svg>
|
||||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href={{absoluteUrl "packages/ohif_viewerbase/assets/icons.svg#icon-viewport-link"}}></use>
|
||||
</svg>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottomright dicomTag">
|
||||
<div>{{#if zoom}}Zoom: {{formatNumberPrecision zoom 0}}%{{/if}}</div>
|
||||
|
||||
+4
-1
@@ -94,7 +94,10 @@ Template.measurementTableRow.events({
|
||||
_.each($('.imageViewerViewport'), element => cornerstone.updateImage(element));
|
||||
|
||||
// Notify that viewer suffered changes
|
||||
OHIF.ui.unsavedChanges.set('viewer.studyViewer.measurements.deleted');
|
||||
const { timepointId } = measurement;
|
||||
const basePath = 'viewer.studyViewer.measurements';
|
||||
const timepointPath = timepointId ? `.${timepointId}` : '';
|
||||
OHIF.ui.unsavedChanges.set(`${basePath}${timepointPath}.deleted`);
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user