Compare commits
2 Commits
main
...
session-ne
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d5befc1df | ||
|
|
deb5ea3f15 |
@ -1,5 +1,5 @@
|
||||
import { useState, useEffect, useRef, useCallback } from 'react';
|
||||
import { ChevronRight, ChevronDown, Folder as FolderIcon, FolderOpen, Plus, Settings, GripVertical, Archive, GitBranch, RefreshCw, Play } from 'lucide-react';
|
||||
import { ChevronRight, ChevronDown, Folder as FolderIcon, FolderOpen, Plus, Settings, GripVertical, Archive, GitBranch, RefreshCw, Play, FolderPlus } from 'lucide-react';
|
||||
import { useSessionStore } from '../stores/sessionStore';
|
||||
import { useErrorStore } from '../stores/errorStore';
|
||||
import { useNavigationStore } from '../stores/navigationStore';
|
||||
@ -1670,6 +1670,19 @@ export function DraggableProjectTreeView() {
|
||||
<span>New Session</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
setSelectedProjectForFolder(project);
|
||||
setShowCreateFolderDialog(true);
|
||||
setNewFolderName('');
|
||||
}}
|
||||
className="p-1 hover:bg-surface-hover rounded transition-all opacity-0 group-hover:opacity-100"
|
||||
title="Add folder"
|
||||
>
|
||||
<FolderPlus className="w-3 h-3 text-text-tertiary hover:text-text-primary" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={(e) => handleRefreshProjectGitStatus(project, e)}
|
||||
disabled={refreshingProjects.has(project.id)}
|
||||
@ -1775,21 +1788,6 @@ export function DraggableProjectTreeView() {
|
||||
})}
|
||||
</div>
|
||||
|
||||
{/* Add folder button */}
|
||||
<div className="ml-6 mt-2 border-t border-border-primary pt-2">
|
||||
<button
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
setSelectedProjectForFolder(project);
|
||||
setShowCreateFolderDialog(true);
|
||||
setNewFolderName('');
|
||||
}}
|
||||
className="w-full px-2 py-1 text-xs text-text-secondary hover:text-text-primary hover:bg-surface-hover rounded transition-colors flex items-center space-x-1"
|
||||
>
|
||||
<Plus className="w-3 h-3" />
|
||||
<span>Add Folder</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user