Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Trim: say "Still uploading" when Trim is pressed during the upload

Claude2aadbac14fe3
diff --git a/src/components/av/trim-tool.tsx b/src/components/av/trim-tool.tsx
index 89345c31..f669f96c 100644
--- a/src/components/av/trim-tool.tsx
+++ b/src/components/av/trim-tool.tsx
@@ -60,7 +60,8 @@ export function TrimTool({ tabs }: { tabs?: React.ReactNode }) {
void headerLength(video.preview).then((d) => setUnreadable({ clip: at, length: d }));
};
const trim = () => {
- if (!video || video.uploading) return void toast("Add the video first");
+ if (!video) return void toast("Add the video first");
+ if (video.uploading) return void toast("Still uploading — one moment");
if (!range) return void toast("Pick the part to keep");
if (range.endTime - range.startTime < MIN_LENGTH) return void toast(`Keep at least ${MIN_LENGTH} s`);
create.mutate(