mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Support deleting multiple scenes (#630)
* Improve layout and add buttons * Move functionality into ListFilter * Make modal style dark * Convert scene options into edit scenes dialog * Add delete scenes dialog * Clear selected ids on delete * Refetch after update/delete * Use DeleteScenesDialog in Scene page * Show scene check boxes in small screens * Change default multi-set mode to set
This commit is contained in:
@@ -14,6 +14,7 @@ interface IMultiSetProps {
|
||||
type: "performers" | "studios" | "tags";
|
||||
ids?: string[];
|
||||
mode: GQL.BulkUpdateIdMode;
|
||||
disabled?: boolean;
|
||||
onUpdate: (items: ValidTypes[]) => void;
|
||||
onSetMode: (mode: GQL.BulkUpdateIdMode) => void;
|
||||
}
|
||||
@@ -66,6 +67,7 @@ const MultiSet: React.FunctionComponent<IMultiSetProps> = (
|
||||
variant="secondary"
|
||||
onClick={() => props.onSetMode(nextMode())}
|
||||
title={getModeText()}
|
||||
disabled={props.disabled}
|
||||
>
|
||||
<Icon icon={getModeIcon()} className="fa-fw" />
|
||||
</Button>
|
||||
@@ -73,6 +75,7 @@ const MultiSet: React.FunctionComponent<IMultiSetProps> = (
|
||||
|
||||
<FilterSelect
|
||||
type={props.type}
|
||||
isDisabled={props.disabled}
|
||||
isMulti
|
||||
isClearable={false}
|
||||
onSelect={onUpdate}
|
||||
|
||||
Reference in New Issue
Block a user