feat(modules): soft delete with restore and active filter

This commit is contained in:
dev
2026-09-18 20:04:02 +03:00
parent d3dd922e32
commit d7d4cc1133
8 changed files with 57 additions and 15 deletions
+1
View File
@@ -239,6 +239,7 @@ async function fetchModules(q, limit) {
const p = new URLSearchParams();
if (q) p.set('search', q);
p.set('limit', String(limit));
p.set('active', '1');
const res = await fetch(`${API}/api/modules?${p}`, { headers: hdr() });
if (!res.ok) return [];
const data = await res.json().catch(() => ({}));