meteor-autoform-modals icon indicating copy to clipboard operation
meteor-autoform-modals copied to clipboard

Hooks not working for remove?

Open zcrowe opened this issue 8 years ago • 0 comments

I have the following button setup:

{{#afModal class="btn btn-box-tool delete-device" formId="deleteDevice" type="remove" collection="Devices" operation="remove" doc=_id}}
var deleteHooksObject = {
   before: {
    remove: function(doc) {
      console.log('Hello World');
    }
  },
}
AutoForm.addHooks('deleteDevice', deleteHooksObject, true);

A similar setup works perfectly for inserts ..is remove supported or not?

zcrowe avatar Aug 12 '16 15:08 zcrowe