LT-259 New proactive UI (three options) for unsaved changes dialog + New API for unsaved changes module (now handlers can be attached to unsaved changes namespace) + Save measurements integration.
This commit is contained in:
1 parent
4a3b01a4f6
commit
91bafb367c
10 files changed
+671
-173
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { Blaze } from 'meteor/blaze';
|
||||
import { _ } from 'meteor/underscore';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
OHIF.ui.unsavedChangesDialog = function(callback, options) {
|
||||
|
||||
// Render the dialog with the given template passing the promise object and callbacks
|
||||
const templateData = _.extend({}, options, {
|
||||
callback: callback
|
||||
});
|
||||
Blaze.renderWithData(Template.unsavedChangesDialog, templateData, document.body);
|
||||
|
||||
};
|
||||
Reference in new issue
Block a user