Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0052357 | POS2 | Core | public | 2023-05-04 19:11 | 2023-06-07 17:54 |
Reporter | gorka_gil | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0052357: BaseFormKeypad: allow to call user actions from buttons | ||||
Description | Rigth now it is possible to add new action buttons in the BaseFormKeypad, but it is not possible to call user-actions from them | ||||
Steps To Reproduce | BaseFormKeypad acept actions but not actionsHandler, so it is not possible to specify actions there | ||||
Proposed Solution | Create infraestructure in its base componente: BaseKeypad that do a bit of interpretation of the actions, something like this: const handleActionWithUserAction = (handleAction, processKey) => ( action, payload ) => { if (typeof action === 'function') { action(payload); } else if (Registry.getRegisteredUserActionNames().includes(action)) { Registry.getUserAction(action).launch({ processKey }); } else { handleAction(action, payload); } }; | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2023-05-04 19:11 | gorka_gil | New Issue | |||
2023-05-04 19:11 | gorka_gil | Assigned To | => Triage Platform Base | ||
2023-05-04 19:11 | gorka_gil | Triggers an Emergency Pack | => No | ||
2023-06-06 16:46 | hgbot | Note Added: 0150830 | |||
2023-06-07 17:54 | hgbot | Note Added: 0150908 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|