mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-11 12:31:13 +00:00
minor fixes
This commit is contained in:
parent
1c1f876be3
commit
12f97e7501
2 changed files with 4 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ function SettingsOverlay({ id }: { id: string }) {
|
||||||
id={id}
|
id={id}
|
||||||
path="/playback/skip-segments"
|
path="/playback/skip-segments"
|
||||||
width={343}
|
width={343}
|
||||||
height={496}
|
height={446}
|
||||||
>
|
>
|
||||||
<Menu.Card>
|
<Menu.Card>
|
||||||
<SkipSegmentsView id={id} />
|
<SkipSegmentsView id={id} />
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import { useSkipTime } from "@/components/player/hooks/useSkipTime";
|
||||||
import { Menu } from "@/components/player/internals/ContextMenu";
|
import { Menu } from "@/components/player/internals/ContextMenu";
|
||||||
import { TIDBSubmissionForm } from "@/components/player/TIDBSubmissionForm";
|
import { TIDBSubmissionForm } from "@/components/player/TIDBSubmissionForm";
|
||||||
import { useOverlayRouter } from "@/hooks/useOverlayRouter";
|
import { useOverlayRouter } from "@/hooks/useOverlayRouter";
|
||||||
|
import { useOverlayStack } from "@/stores/interface/overlayStack";
|
||||||
import { usePlayerStore } from "@/stores/player/store";
|
import { usePlayerStore } from "@/stores/player/store";
|
||||||
import { usePreferencesStore } from "@/stores/preferences";
|
import { usePreferencesStore } from "@/stores/preferences";
|
||||||
import { formatSeconds } from "@/utils/formatSeconds";
|
import { formatSeconds } from "@/utils/formatSeconds";
|
||||||
|
|
@ -16,6 +17,7 @@ export function SkipSegmentsView({ id }: { id: string }) {
|
||||||
const display = usePlayerStore((s) => s.display);
|
const display = usePlayerStore((s) => s.display);
|
||||||
const segments = useSkipTime();
|
const segments = useSkipTime();
|
||||||
const tidbKey = usePreferencesStore((s) => s.tidbKey);
|
const tidbKey = usePreferencesStore((s) => s.tidbKey);
|
||||||
|
const { setCurrentOverlay } = useOverlayStack();
|
||||||
const [showSubmissionForm, setShowSubmissionForm] = useState(false);
|
const [showSubmissionForm, setShowSubmissionForm] = useState(false);
|
||||||
|
|
||||||
const handleSeek = (seconds: number) => {
|
const handleSeek = (seconds: number) => {
|
||||||
|
|
@ -115,6 +117,7 @@ export function SkipSegmentsView({ id }: { id: string }) {
|
||||||
}}
|
}}
|
||||||
onSuccess={() => {
|
onSuccess={() => {
|
||||||
setShowSubmissionForm(false);
|
setShowSubmissionForm(false);
|
||||||
|
setCurrentOverlay("tidb-submission-success");
|
||||||
// Optionally refresh segments here
|
// Optionally refresh segments here
|
||||||
}}
|
}}
|
||||||
onCancel={() => setShowSubmissionForm(false)}
|
onCancel={() => setShowSubmissionForm(false)}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue