Show "Jetzt entpacken" context menu when any item is completed, re-enable paused packages
Build and Release / build (push) Has been cancelled
Build and Release / build (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
fa30e738d9
commit
19a588a997
@@ -2679,15 +2679,11 @@ export function App(): ReactElement {
|
||||
{hasPackages && !multi && (() => {
|
||||
const pkg = snapshot.session.packages[contextMenu.packageId];
|
||||
const items = pkg?.itemIds.map((id) => snapshot.session.items[id]).filter(Boolean) || [];
|
||||
const hasExtractError = items.some((item) => item && /^Entpack-Fehler/i.test(item.fullStatus));
|
||||
const allCompleted = items.length > 0 && items.every((item) => item && item.status === "completed");
|
||||
const someCompleted = items.some((item) => item && item.status === "completed");
|
||||
return (<>
|
||||
{allCompleted && (
|
||||
{someCompleted && (
|
||||
<button className="ctx-menu-item" onClick={() => { void window.rd.extractNow(contextMenu.packageId); setContextMenu(null); }}>Jetzt entpacken</button>
|
||||
)}
|
||||
{hasExtractError && (
|
||||
<button className="ctx-menu-item" onClick={() => { void window.rd.retryExtraction(contextMenu.packageId); setContextMenu(null); }}>Extraktion wiederholen</button>
|
||||
)}
|
||||
</>);
|
||||
})()}
|
||||
{hasPackages && (
|
||||
|
||||
Reference in New Issue
Block a user