‘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.
'on-enable': function(t, options) {
console.log('enable', options)
},
'on-disable': function(t) {
console.log('disable')
}
‘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.
'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
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.