Commit Graph

6 Commits

Author SHA1 Message Date
Hristo Terezov
e2ec4842a1 fix(toolbarButtons): filter visitor buttons in redux.
Filters the toolbarButtons in redux depending on the visitor state instead of filtering them every time in mapStateToProps. This will prevent unnecessary rerenders of the toolbar.

Additionally:
 - Moves visitor buttons const from features/config in features/toolbox.
 - Removes dublicate functions isButtonEnabled and isToolbarButtonEnabled.
 - Adds more buttons to the visitor allowed buttons which functionality has been any way accessible trough shortcuts or somewhere else.
 - Enables customButtons to be visible for visitors.
2024-02-29 18:51:47 -06:00
Hristo Terezov
ea075d9bae fix(toolbarButtons): Store all buttons in redux.
The previous version of getToolbarButtons function was actually adding the custom buttons on every call to the config toolbarButtons array, effectively creating dublicates of every custom button. The PR fixes this issue.

Also now we will be running the getToolbarButtons calculation only when needed.
2024-02-29 16:36:52 -06:00
Calin-Teodor
aff671b44a feat(config/flag): enable/disable participants pane 2024-02-23 14:54:37 +02:00
Hristo Terezov
a3bb1a3459 feat(visitors): Hide reactions. 2024-02-01 18:08:19 -06:00
Mihaela Dumitru
c9d907e3fe fix(shortcuts) toggle value based on current state (#13685) 2023-08-09 20:03:45 +03:00
Robert Pintilii
52fbd3aeb8 ref(toolbar) Convert to function component (#13511)
Extract keyboard shortcuts logic to custom hook
2023-07-03 12:58:58 +03:00