Let a downloaded video be saved whole, before or without cutting

Save to library and Save to Drive on a finished download, not only on
clips. The download stays on the server to cut clips from either way;
a clip's library save still clears its working file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 00:14:26 -05:00
parent 6ccbc03b52
commit 06a0e07a79
4 changed files with 54 additions and 11 deletions

View file

@ -491,6 +491,26 @@ export default function AdminClips() {
{openId === s.id ? "Close" : "Make clips"}
</button>
)}
{/* The whole video, before (or without) cutting: it
stays here to cut from either way. */}
{s.status === "done" && s.has_file && !s.saved_url && (
<button type="button" className={button} onClick={() => act(() => post(`/admin/clips/${s.id}/save`, {}))}>
Save to library
</button>
)}
{s.saved_url && (
<Link to="/admin/media" className="text-sm underline" style={{ color: accentText(BRAND) }}>
In the media library
</Link>
)}
{s.status === "done" && !s.saved_drive && (s.has_file || s.saved_url) && (
<SaveToDrive clip={s} onSaved={load} />
)}
{s.saved_drive && (
<a href={s.saved_drive.url} target="_blank" rel="noreferrer" className="text-sm underline" style={{ color: accentText(BRAND) }}>
In Drive: Media{s.saved_drive.folder ? `/${s.saved_drive.folder}` : ""}
</a>
)}
{s.status !== "running" && (
<button
type="button"