LT-92: Displaying the criteria nonconformities when clicking the warning icon

This commit is contained in:
Bruno Alves de Faria committed 2017-01-18 11:01:52 -02:00
1 parent 65b867d1b0
commit db4792b3de
21 files changed
+137 -54

No files matched your search

@@ -3,7 +3,7 @@ import { Blaze } from 'meteor/blaze';
import { _ } from 'meteor/underscore';
import { OHIF } from 'meteor/ohif:core';
OHIF.ui.showFormDialog = (templateName, dialogData) => {
OHIF.ui.showDialog = (templateName, dialogData) => {
// Check if the given template exists
const template = Template[templateName];
if (!template) {
@@ -23,7 +23,7 @@ OHIF.ui.repositionDialog = ($modal, x, y) => {
$dialog.css({
left,
top
}).trigger('spatialChanged');
}).trigger('spatialChanged').one('transitionend', () => $dialog.trigger('spatialChanged'));
// Switch the modal to its previous visibility state
$modal.toggle(isVisible);
+1 -1
View File
@@ -1,6 +1,6 @@
import './bounded/bounded.js';
import './dimensional/dimensional.js';
import './dialog/form.js';
import './dialog/display.js';
import './dialog/spatial.js';
import './dialog/unsavedChangesDialog.js';
import './draggable/draggable.js';
@@ -417,7 +417,7 @@ export const unsavedChanges = {
title: 'You have unsaved changes!',
message: "Your changes will be lost if you don't save them before leaving the current page... Are you sure you want to proceed?"
}, options);
OHIF.ui.showFormDialog('dialogConfirm', dialogOptions).then(function() {
OHIF.ui.showDialog('dialogConfirm', dialogOptions).then(function() {
// Unsaved changes exist but user confirms action...
shouldProceed = true;
callback.call(null, shouldProceed, hasChanges);