fix: Misc. workflow fixes [OHIF-363] (#2040)
* fix: "Adding measurements to existing report" portion of issue * fix: notes from investigation to fix "Creating a new report while tracking measurements" * fix: "Measurements spanning multiple studies" * chore: comments explaining isDirty behavior
This commit is contained in:
1 parent
cae54b0779
commit
5a66920d1d
3 files changed
+29
-21
No files matched your search
+4
-7
@@ -17,13 +17,10 @@ function promptUser({ servicesManager, extensionManager }, ctx, evt) {
|
||||
viewportIndex
|
||||
);
|
||||
|
||||
if (ctx.isDirty && promptResult === RESPONSE.SET_STUDY_AND_SERIES) {
|
||||
promptResult = await _askSaveDiscardOrCancel(
|
||||
UIViewportDialogService,
|
||||
viewportIndex
|
||||
);
|
||||
} else {
|
||||
promptResult = RESPONSE.SET_STUDY_AND_SERIES;
|
||||
if (promptResult === RESPONSE.SET_STUDY_AND_SERIES) {
|
||||
promptResult = ctx.isDirty
|
||||
? await _askSaveDiscardOrCancel(UIViewportDialogService, viewportIndex)
|
||||
: RESPONSE.SET_STUDY_AND_SERIES;
|
||||
}
|
||||
|
||||
resolve({
|
||||
|
||||
Reference in new issue
Block a user