Fix loading issue in galleries and redirect on gallery creation (#857)

* Fix loading issue in galleries and redirect on gallery creation
* Add error messages when image/galleries aren't found
* Clean up gallery/image/performer/scene view states
* Simplify error messages
This commit is contained in:
InfiniteTF
2020-10-17 00:57:02 +02:00
committed by GitHub
parent bbc6c43201
commit cf003a55bf
12 changed files with 171 additions and 105 deletions

View File

@@ -15,7 +15,6 @@ import { RatingStars } from "src/components/Scenes/SceneDetails/RatingStars";
interface IProps {
image: GQL.ImageDataFragment;
isVisible: boolean;
onUpdate: (image: GQL.ImageDataFragment) => void;
onDelete: () => void;
}
@@ -107,7 +106,6 @@ export const ImageEditPanel: React.FC<IProps> = (props: IProps) => {
try {
const result = await updateImage();
if (result.data?.imageUpdate) {
props.onUpdate(result.data.imageUpdate);
Toast.success({ content: "Updated image" });
}
} catch (e) {