mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
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:
@@ -10,6 +10,7 @@ import React, {
|
||||
import { ApolloError } from "@apollo/client";
|
||||
import { useHistory, useLocation } from "react-router-dom";
|
||||
import Mousetrap from "mousetrap";
|
||||
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
||||
import {
|
||||
SlimSceneDataFragment,
|
||||
SceneMarkerDataFragment,
|
||||
@@ -96,6 +97,8 @@ export interface IListHookOperation<T> {
|
||||
selectedIds: Set<string>
|
||||
) => boolean;
|
||||
postRefetch?: boolean;
|
||||
icon?: IconProp;
|
||||
buttonVariant?: string;
|
||||
}
|
||||
|
||||
export enum PersistanceLevel {
|
||||
@@ -357,6 +360,8 @@ const RenderList = <
|
||||
|
||||
return true;
|
||||
},
|
||||
icon: o.icon,
|
||||
buttonVariant: o.buttonVariant,
|
||||
}));
|
||||
|
||||
function onEdit() {
|
||||
|
||||
Reference in New Issue
Block a user