feat(admin-web): surface queued publish hint in media view

Restores publish hints for queued and immediate states so operators
know when a task will wait for the desktop client to come back online.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-25 18:09:12 +08:00
parent d1f2a14477
commit 46d0a7aea0
+6
View File
@@ -159,6 +159,12 @@ function resolvePublishState(account: DesktopAccountInfo): PublishState {
}
function resolvePublishHint(account: DesktopAccountInfo, publishState: PublishState): string {
if (publishState === "immediate") {
return "";
}
if (publishState === "queued") {
return "客户端当前离线,任务会先进入发布队列,等桌面端上线后自动继续。";
}
if (account.health !== "live") {
return "授权状态异常,先在桌面端重新校验后再发布。";
}