Skip to content
Snippets Groups Projects
Commit 3502e7b1 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

#187 - Cleanup pad trigger action

parent 9a0b98d0
Branches
Tags
No related merge requests found
module.exports = function (self) {
self.setActionDefinitions({
sample_action: {
pad_trigger_action: {
name: 'Trigger Pad',
options: [
{
......@@ -14,11 +14,11 @@ module.exports = function (self) {
const pad = self.currentProject.findPadByName(event.options.name);
if (!pad) {
self.log('warning', 'Cannot find a pad with name ' + event.options.name);
return;
}
const payload = {
self.sendToWebSocket('cart-action', {
'pad': pad.id
};
self.sendToWebSocket('cart-action', payload)
});
},
},
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment