reorganize packages, start converting overall app to react (very broken at the moment)
This commit is contained in:
1 parent
024fe1a448
commit
5f30f7bd35
479 files changed
+5364
-11611
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
/**
|
||||
* Extensible method to trigger unsaved changes on the active timepoint
|
||||
*
|
||||
* @param {String} subpath - The unsaved changes subpath that will come after the timepoint ID
|
||||
*/
|
||||
OHIF.measurements.triggerTimepointUnsavedChanges = (subpath='changed') => {
|
||||
const basePath = 'viewer.studyViewer.measurements';
|
||||
const activeTimepoint = OHIF.measurements.getActiveTimepoint();
|
||||
if (!activeTimepoint) return;
|
||||
const { timepointId } = activeTimepoint;
|
||||
const timepointPath = timepointId ? `.${timepointId}` : '';
|
||||
OHIF.ui.unsavedChanges.set(`${basePath}${timepointPath}.${subpath}`);
|
||||
};
|
||||
Reference in new issue
Block a user