mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-21 05:58:13 +02:00
feat(projets): client API + store re-racinés par projet
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
0291831479
commit
5e7461096b
5 files changed
+134
-32
No files matched your search
@@ -61,7 +61,7 @@ export function FilesView() {
|
||||
}
|
||||
|
||||
function WorkspaceTree({ nodes, depth }: { nodes: FileNode[]; depth: number }) {
|
||||
const { openPreview, previewPath, removeFile } = useStore();
|
||||
const { openPreview, previewPath, removeFile, currentProject } = useStore();
|
||||
const confirmDelete = (node: FileNode) => {
|
||||
const msg =
|
||||
node.type === "dir"
|
||||
@@ -93,7 +93,7 @@ function WorkspaceTree({ nodes, depth }: { nodes: FileNode[]; depth: number }) {
|
||||
</button>
|
||||
{node.type === "file" && (
|
||||
<button
|
||||
onClick={() => downloadFile(node.path)}
|
||||
onClick={() => downloadFile(node.path, currentProject())}
|
||||
className="flex items-center gap-1 border-2 border-line bg-base px-2 py-1 text-[11px] text-accent"
|
||||
title={`Télécharger ${node.name}`}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user