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
+12 -2
View File
@@ -478,7 +478,16 @@ export default function EdictBoard() {
<option key={pid} value={pid}>📁 {info.name || pid}</option> <option key={pid} value={pid}>📁 {info.name || pid}</option>
))} ))}
</select> </select>
{selectedProjectId && !selectedProjectId.startsWith('_') && selectedProjectId !== '__general__' && ( {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: '#555', cursor: 'not-allowed', opacity: 0.4,
}}>🔒</button>
) : (
<button <button
onClick={() => setShowProjectAction(!showProjectAction)} onClick={() => setShowProjectAction(!showProjectAction)}
title="项目操作" title="项目操作"
@@ -488,7 +497,8 @@ export default function EdictBoard() {
color: 'var(--fg)', cursor: 'pointer', color: 'var(--fg)', cursor: 'pointer',
}} }}
></button> ></button>
)} );
})()}
{showProjectAction && selectedProjectId && !selectedProjectId.startsWith('_') && ( {showProjectAction && selectedProjectId && !selectedProjectId.startsWith('_') && (
<ProjectActionPopup <ProjectActionPopup
projectId={selectedProjectId} projectId={selectedProjectId}