"on-disable" event not firing in Power-Up

‘on-enable’ fires just fine. I’ve defined ‘on-disable’ in the same way and it’s not firing when I disable my Power-Up.

image

'on-enable': function(t, options) {
  console.log('enable', options)
},
'on-disable': function(t) {
  console.log('disable')
}

I did not enable on-disable in my Power-Up’s capabilities :slight_smile:

1 Like

Easy mistake to make!

In fact, we were doing it so often ourselves, we added console warnings. When your connector declares capabilities that aren’t enabled, we fire off a warning to try to give you a heads-up that something isn’t configured as you might be expecting.