LT-293: send proper timepoint id to server when removing an association and update the view, removing this associations

This commit is contained in:
Eloízio Salgado authored and Erik Ziegler committed 2016-11-15 08:25:09 +01:00
1 parent 998cdce9fb
commit 987be26047
5 files changed
+90 -23

No files matched your search

@@ -37,6 +37,19 @@ Meteor.methods({
});
},
removeTimepoint(timepointData) {
OHIF.log.info('Removing Timepoint off the Server');
OHIF.log.info(JSON.stringify(timepointData, null, 2));
Timepoints.remove(timepointData);
},
updateTimepoint(timepointData, query) {
OHIF.log.info('Updating Timepoint on the Server');
OHIF.log.info(JSON.stringify(timepointData, null, 2));
OHIF.log.info(JSON.stringify(query, null, 2));
Timepoints.update(timepointData, query);
},
retrieveTimepoints(filter) {
OHIF.log.info('Retrieving Timepoints from the Server');
return Timepoints.find(filter || {}).fetch();