Flexible dashboard toolbar actions configuration #1053
Closed
chintankavathia
started this conversation in
General
Replies: 2 comments 4 replies
|
Closing this. Implemented as per proposal. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Overview
Flexible dashboard currently allows providing toolbar actions as
primaryEditActionsandsecondaryEditActions. The current approach for configuring this actions is throughSiWidgetStorageby overridinggetToolbarMenuItemsand returningCurrent Implementation drawbacks
SiWidgetStorageis meant to handle widget persistence and loading from storage system. AddinggetToolbarMenuItemsinto that abstraction layer deviates its sole purpose.getToolbarMenuItemsbecomes very complex with multiple conditionsgetToolbarMenuItemscreates complex rxjs handling on the component side.Proposal
getToolbarMenuItemsfromSiWidgetStoragecontractprimaryEditActionsandsecondaryEditActionsonsi-flexible-dashboardcomponent.All reactions