Improving window level presets preferences

This commit is contained in:
Bruno Alves de Faria committed 2017-10-11 08:04:53 -03:00
1 parent b9b9a0f00d
commit ac69233025
2 files changed
+7 -2

No files matched your search

@@ -10,7 +10,11 @@ Template.windowLevelPresetsForm.onCreated(() => {
save() {
const form = instance.$('form').first().data('component');
const definitions = form.value();
wlPresets.store(definitions);
const promise = wlPresets.store(definitions);
promise.then(() => OHIF.ui.notifications.success({
text: 'The Window/Levels preferences were successfully saved.'
}));
return promise;
},
resetDefaults() {