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:
@@ -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 "授权状态异常,先在桌面端重新校验后再发布。";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user