Add "toolbar" buttons for some list actions #1673
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Personal pet peeve is having to click twice to start playback of selected scenes (once to open the actions menu and once more for "Play selected". This while the edit and delete buttons always appear right away after selecting a scene while I use those much less. So this fixes it my adding a play button next to the edit and delete buttons.
Also when adding images to a gallery for the first time I really had to search for how to do it. Obviously there is the
Add
tab, but after selecting some images I had to search how to actually save it, and apparently that's also in the...
menu. But not anymore, as now it's also available in the toolbar. And applied the same for removing images from the gallery. So both are now available as button next to the edit/delete buttons.This works by adding an optional
icon
property to the "otherOperations" list. When an icon is set the button will be shown. OptionallybuttonVariant
can be provided as well, which is used to make "Remove from gallery" button red (/applydanger
variant).