salix/client/helpers/watcherHelper.js

22 lines
460 B
JavaScript
Raw Normal View History

module.exports.watcher = {
2018-09-24 12:51:27 +00:00
submit: () => {
2018-10-08 11:09:30 +00:00
return {
then: callback => {
callback({data: {id: 1234}});
}
};
2018-09-24 12:51:27 +00:00
},
realSubmit: () => {
2018-10-08 11:09:30 +00:00
return {
then: callback => {
callback({data: {id: 1234}});
}
};
},
check: () => {},
notifySaved: () => {},
setDirty: () => {},
2018-09-19 13:05:07 +00:00
setPristine: () => {},
updateOriginalData: () => {}
};