salix/client/helpers/watcherHelper.js

22 lines
460 B
JavaScript

module.exports.watcher = {
submit: () => {
return {
then: callback => {
callback({data: {id: 1234}});
}
};
},
realSubmit: () => {
return {
then: callback => {
callback({data: {id: 1234}});
}
};
},
check: () => {},
notifySaved: () => {},
setDirty: () => {},
setPristine: () => {},
updateOriginalData: () => {}
};