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:
Emanuel F. Oliveira committed 2016-11-21 10:22:33 -02:00
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);
};