Flexible dashboard toolbar actions configuration #1053
chintankavathia
started this conversation in
General
Replies: 1 comment 4 replies
-
|
@timowolf WDYT |
Beta Was this translation helpful? Give feedback.
4 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.Beta Was this translation helpful? Give feedback.
All reactions