Checkpoint: - Bouton crayon dans MesEtablissements ouvre un Dialog modal (sans mode édition préalable)

- Page Solutions Logicielles : bouton Ajouter, crayon Modifier, poubelle Supprimer (gestionnaires uniquement)
- Lien espace adhérent FEHAP mis à jour vers l'URL exacte
- Serveur redémarré, cache esbuild purgé, 0 erreur TypeScript
This commit is contained in:
Manus
2026-04-17 07:27:41 -04:00
parent 9aad377c49
commit 6edf1f6724
5 changed files with 272 additions and 314 deletions

View File

@@ -752,3 +752,17 @@ export async function getToutesLesSolutionsGroupees() {
return Array.from(map.values());
}
export async function updateSolution(id: number, nom: string, editeurId: number, blocFonctionnelId: number | null) {
const db = await getDb();
if (!db) throw new Error("DB unavailable");
await db.update(solutions).set({ nom, editeurId, blocFonctionnelId }).where(eq(solutions.id, id));
return { id };
}
export async function deleteSolution(id: number) {
const db = await getDb();
if (!db) throw new Error("DB unavailable");
await db.delete(solutions).where(eq(solutions.id, id));
return { success: true };
}