From 2db557ad24b6fb4a10e29be7c1907d8f06626fad Mon Sep 17 00:00:00 2001 From: navaneeth Date: Fri, 28 May 2021 21:28:00 +0530 Subject: [PATCH] Feature: Remove event actions from widgets --- .../src/Editor/Inspector/EventSelector.jsx | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/frontend/src/Editor/Inspector/EventSelector.jsx b/frontend/src/Editor/Inspector/EventSelector.jsx index 5ef94bbfe1..0485e6fbbe 100644 --- a/frontend/src/Editor/Inspector/EventSelector.jsx +++ b/frontend/src/Editor/Inspector/EventSelector.jsx @@ -48,6 +48,23 @@ export const EventSelector = ({ return modalOptions; } + function eventChanged(param, value, extraData) { + if(value === 'none') { + eventUpdated(param, null, null); + } else { + eventUpdated(param, value, extraData) + } + } + + let actionOptions = ActionTypes.map((action) => { + return { name: action.name, value: action.id }; + }); + + actionOptions.unshift({ + name: 'None', + value: 'none' + }); + return (