auto-sync: 2026-05-20 23:32:42

This commit is contained in:
cfdaily
2026-05-20 23:32:42 +08:00
parent 3ec09a6bfe
commit 4b8ecbc98d
+19 -9
View File
@@ -478,17 +478,27 @@ export default function EdictBoard() {
<option key={pid} value={pid}>📁 {info.name || pid}</option>
))}
</select>
{selectedProjectId && !selectedProjectId.startsWith('_') && selectedProjectId !== '__general__' && (
<button
onClick={() => setShowProjectAction(!showProjectAction)}
title="项目操作"
style={{
{selectedProjectId && !selectedProjectId.startsWith('_') && selectedProjectId !== '__general__' && (() => {
const pInfo = projects[selectedProjectId] as any;
const isLocked = pInfo?.source === 'sanguo_projects_scan' || selectedProjectId === '_general';
return isLocked ? (
<button disabled title="自动发现的项目不可删除" style={{
padding: '2px 6px', borderRadius: 4, fontSize: 11,
border: '1px solid var(--line)', background: 'var(--panel)',
color: 'var(--fg)', cursor: 'pointer',
}}
></button>
)}
color: '#555', cursor: 'not-allowed', opacity: 0.4,
}}>🔒</button>
) : (
<button
onClick={() => setShowProjectAction(!showProjectAction)}
title="项目操作"
style={{
padding: '2px 6px', borderRadius: 4, fontSize: 11,
border: '1px solid var(--line)', background: 'var(--panel)',
color: 'var(--fg)', cursor: 'pointer',
}}
></button>
);
})()}
{showProjectAction && selectedProjectId && !selectedProjectId.startsWith('_') && (
<ProjectActionPopup
projectId={selectedProjectId}