Add "toolbar" buttons for some list actions (#1673)

* Support adding buttons to list "toolbar"
* Show add and remove images to gallery in toolbar
* Show button to play selected scenes to list toolbar
This commit is contained in:
gitgiggety
2021-08-26 02:46:07 +02:00
committed by GitHub
parent e98302fcd0
commit 2e83405841
6 changed files with 62 additions and 30 deletions

View File

@@ -3,6 +3,7 @@ import _ from "lodash";
import { useIntl } from "react-intl";
import { useHistory } from "react-router-dom";
import Mousetrap from "mousetrap";
import { IconProp } from "@fortawesome/fontawesome-svg-core";
import {
FindScenesQueryResult,
SlimSceneDataFragment,
@@ -44,6 +45,7 @@ export const SceneList: React.FC<ISceneList> = ({
text: intl.formatMessage({ id: "actions.play_selected" }),
onClick: playSelected,
isDisplayed: showWhenSelected,
icon: "play" as IconProp,
},
{
text: intl.formatMessage({ id: "actions.play_random" }),