Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onClick(event, data) {
if (info.actionCreator) {
context.store.dispatch(cmf.action.getActionObject(context, info.id, event, data));
} else {
context.store.dispatch(
Object.assign(
{
model,
},
info.payload,
),
);
}
},
},
export function mapStateToProps(state, ownProps) {
let props = {};
if (ownProps.actionId) {
props = cmf.action.getActionInfo(
{
registry: cmf.registry.getRegistry(),
store: {
getState: () => state,
},
},
ownProps.actionId,
);
}
return props;
}
export function mapStateToProps(state, ownProps) {
let props = {};
if (ownProps.actionId) {
props = cmf.action.getActionInfo(
{
registry: cmf.registry.getRegistry(),
store: {
getState: () => state,
},
},
ownProps.actionId,
);
}
return props;
}
export function mapStateToProps(state, ownProps) {
if (ownProps.actionId) {
return cmf.action.getActionInfo(
{
registry: cmf.registry.getRegistry(),
store: {
getState: () => state,
},
},
ownProps.actionId,
);
}
return {};
}
function getAction(id, currentRoute, state) {
const action = { actionId: id };
const info = cmf.action.getActionInfo(
{
registry: cmf.registry.getRegistry(),
store: {
getState: () => state,
},
},
id,
);
action.label = info.label;
action.id = info.id;
const route = get(
info,
'payload.cmf.routerReplace',
get(info, 'payload.cmf.routerPush', get(info, 'href')),
);
props.items = props.actionIds.map(itemId => cmf.action.getActionInfo(context, itemId));
}
props.items = actionIds.map(itemId => cmf.action.getActionInfo(context, itemId));
}
export function mapStateToProps(state, ownProps) {
if (!ownProps.actionId) {
return {};
}
return cmf.action.getActionInfo(
{
registry: cmf.registry.getRegistry(),
store: {
getState: () => state,
},
},
ownProps.actionId,
);
}