mirror of
https://github.com/stashapp/stash.git
synced 2025-12-15 04:44:28 +01:00
Mount edit panels only when first entering (#4564)
This commit is contained in:
parent
706b61233f
commit
5b9bdadaec
3 changed files with 4 additions and 4 deletions
|
|
@ -264,7 +264,7 @@ export const GalleryPage: React.FC<IProps> = ({ gallery, add }) => {
|
|||
isVisible={activeTabKey === "gallery-chapter-panel"}
|
||||
/>
|
||||
</Tab.Pane>
|
||||
<Tab.Pane eventKey="gallery-edit-panel">
|
||||
<Tab.Pane eventKey="gallery-edit-panel" mountOnEnter>
|
||||
<GalleryEditPanel
|
||||
isVisible={activeTabKey === "gallery-edit-panel"}
|
||||
gallery={gallery}
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ const ImagePage: React.FC<IProps> = ({ image }) => {
|
|||
>
|
||||
<ImageFileInfoPanel image={image} />
|
||||
</Tab.Pane>
|
||||
<Tab.Pane eventKey="image-edit-panel">
|
||||
<Tab.Pane eventKey="image-edit-panel" mountOnEnter>
|
||||
<ImageEditPanel
|
||||
isVisible={activeTabKey === "image-edit-panel"}
|
||||
image={image}
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import {
|
|||
queryFindScenesByID,
|
||||
} from "src/core/StashService";
|
||||
|
||||
import { SceneEditPanel } from "./SceneEditPanel";
|
||||
import { ErrorMessage } from "src/components/Shared/ErrorMessage";
|
||||
import { LoadingIndicator } from "src/components/Shared/LoadingIndicator";
|
||||
import { Icon } from "src/components/Shared/Icon";
|
||||
|
|
@ -59,7 +60,6 @@ const ExternalPlayerButton = lazyComponent(
|
|||
const QueueViewer = lazyComponent(() => import("./QueueViewer"));
|
||||
const SceneMarkersPanel = lazyComponent(() => import("./SceneMarkersPanel"));
|
||||
const SceneFileInfoPanel = lazyComponent(() => import("./SceneFileInfoPanel"));
|
||||
const SceneEditPanel = lazyComponent(() => import("./SceneEditPanel"));
|
||||
const SceneDetailPanel = lazyComponent(() => import("./SceneDetailPanel"));
|
||||
const SceneMoviePanel = lazyComponent(() => import("./SceneMoviePanel"));
|
||||
const SceneGalleriesPanel = lazyComponent(
|
||||
|
|
@ -479,7 +479,7 @@ const ScenePage: React.FC<IProps> = ({
|
|||
<Tab.Pane className="file-info-panel" eventKey="scene-file-info-panel">
|
||||
<SceneFileInfoPanel scene={scene} />
|
||||
</Tab.Pane>
|
||||
<Tab.Pane eventKey="scene-edit-panel">
|
||||
<Tab.Pane eventKey="scene-edit-panel" mountOnEnter>
|
||||
<SceneEditPanel
|
||||
isVisible={activeTabKey === "scene-edit-panel"}
|
||||
scene={scene}
|
||||
|
|
|
|||
Loading…
Reference in a new issue