You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: delete associated scripts when removing server (#145)
- Update database foreign key constraint to ON DELETE CASCADE
- Add deleteInstalledScriptsByServer method to DatabaseService
- Update server DELETE API to remove associated scripts before server deletion
- Add confirmation modal with type-to-confirm for server deletion
- Require users to type server name to confirm deletion
- Show warning about deleting associated scripts in confirmation modal
if(window.confirm('Are you sure you want to delete this server configuration?')){
36
-
onDelete(id);
37
-
}
44
+
constserver=servers.find(s=>s.id===id);
45
+
if(!server)return;
46
+
47
+
setConfirmationModal({
48
+
isOpen: true,
49
+
variant: 'danger',
50
+
title: 'Delete Server',
51
+
message: `This will permanently delete the server configuration "${server.name}" (${server.ip}) and all associated installed scripts. This action cannot be undone!`,
0 commit comments