fix: restore current in-place project files
This commit is contained in:
@@ -206,6 +206,8 @@ function FilePicker(props: { run: ProjectRun; directory: string; historical?: bo
|
||||
}
|
||||
const textFiles = files.filter((file) => file.kind === "text");
|
||||
const complexFiles = files.filter((file) => file.kind === "document");
|
||||
const sourceLabel = props.historical ? "Gespeicherter Projektstand"
|
||||
: props.run.inPlace || props.run.sourceInPlace ? "Aktueller Projektordner" : "Pseudonymisierte Kopien";
|
||||
const renderFile = (file: ProjectFile) => <List.Item key={file.relPath}
|
||||
icon={selected.has(file.relPath) ? Icon.CheckCircle : Icon.Circle}
|
||||
title={restorePath(file.relPath, props.run.mapping, props.run.matchModes)} subtitle={file.relPath}
|
||||
@@ -224,7 +226,7 @@ function FilePicker(props: { run: ProjectRun; directory: string; historical?: bo
|
||||
subtitle="Klartext-Kopien in Downloads/Velum erstellen · Office-Dateien nur nach Auswahl"
|
||||
actions={<ActionPanel><Action title="Auswahl nach Downloads wiederherstellen"
|
||||
icon={Icon.Download} onAction={exportFiles} /></ActionPanel>} />
|
||||
<List.Item key="source" icon={Icon.Folder} title="Quelle für die Wiederherstellung" subtitle={sourceRoot}
|
||||
<List.Item key="source" icon={Icon.Folder} title={sourceLabel} subtitle={sourceRoot}
|
||||
actions={<ActionPanel><Action title="Quellordner im Finder anzeigen" onAction={() => showInFinder(sourceRoot)} /></ActionPanel>} />
|
||||
</List.Section>
|
||||
<List.Section title={`Textdateien · ${textFiles.length} · standardmäßig ausgewählt`}>
|
||||
|
||||
Reference in New Issue
Block a user