feat(web): simplify subscription and manual download flows and sync UHD styles
This commit is contained in:
1 parent
27c0f27434
commit
c3c4456913
33 files changed
+1083
-633
No files matched your search
@@ -56,13 +56,14 @@ export function ResourceDownload({ session }: { session: BrowserSessionView }) {
|
||||
{busy ? "提交中…" : "下载当前资源"}
|
||||
</Button>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="outline"
|
||||
size="icon-sm"
|
||||
variant="ghost"
|
||||
disabled={busy || session.controller === "closed"}
|
||||
aria-label="高级下载选项"
|
||||
title="高级下载选项"
|
||||
onClick={() => void prepare(true)}
|
||||
>
|
||||
<Settings2 />
|
||||
下载选项
|
||||
</Button>
|
||||
{planId ? (
|
||||
<Link className="text-caption underline" to={`/console/downloads?plan=${planId}`}>
|
||||
@@ -70,13 +71,14 @@ export function ResourceDownload({ session }: { session: BrowserSessionView }) {
|
||||
</Link>
|
||||
) : null}
|
||||
</div>
|
||||
{resource ? (
|
||||
{resource && open ? (
|
||||
<ManualDownloadDialog
|
||||
key={resource.release.id}
|
||||
resource={workbenchResource(resource.release)}
|
||||
open={open}
|
||||
onOpenChange={setOpen}
|
||||
initialUnrecognized={unrecognized}
|
||||
initialAdvanced={!unrecognized}
|
||||
submit={(options) => submit.mutateAsync({ ...options, sourceReleaseId: resource.release.id })}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
Reference in new issue
Block a user