mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix error when viewing scenes related to objects with illegal characters in name (#395)
* Fix gitattributes for v2.5
This commit is contained in:
@@ -9,7 +9,9 @@ interface IOperationsPanelProps {
|
||||
scene: GQL.SceneDataFragment;
|
||||
}
|
||||
|
||||
export const SceneOperationsPanel: FunctionComponent<IOperationsPanelProps> = (props: IOperationsPanelProps) => {
|
||||
export const SceneOperationsPanel: FunctionComponent<IOperationsPanelProps> = (
|
||||
props: IOperationsPanelProps
|
||||
) => {
|
||||
const Toast = useToast();
|
||||
const [generateScreenshot] = StashService.useSceneGenerateScreenshot();
|
||||
|
||||
@@ -25,7 +27,10 @@ export const SceneOperationsPanel: FunctionComponent<IOperationsPanelProps> = (p
|
||||
|
||||
return (
|
||||
<>
|
||||
<Button className="edit-button" onClick={() => onGenerateScreenshot(JWUtils.getPlayer().getPosition())}>
|
||||
<Button
|
||||
className="edit-button"
|
||||
onClick={() => onGenerateScreenshot(JWUtils.getPlayer().getPosition())}
|
||||
>
|
||||
Generate thumbnail from current
|
||||
</Button>
|
||||
<Button className="edit-button" onClick={() => onGenerateScreenshot()}>
|
||||
|
||||
Reference in New Issue
Block a user