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
// For SSH scripts with container_id, use confirmation modal
525
+
setConfirmationModal({
526
+
isOpen: true,
527
+
variant: 'simple',
528
+
title: 'Delete Database Record Only',
529
+
message: `This will only delete the database record for "${scriptToDelete.script_name}" (Container ID: ${scriptToDelete.container_id}).\n\nThe container will remain intact and can be re-detected later via auto-detect.`,
530
+
onConfirm: ()=>{
531
+
voiddeleteScriptMutation.mutate({ id });
532
+
setConfirmationModal(null);
533
+
}
534
+
});
535
+
}else{
536
+
// For non-SSH scripts or scripts without container_id, use simple confirm
537
+
if(confirm('Are you sure you want to delete this installation record?')){
538
+
voiddeleteScriptMutation.mutate({ id });
539
+
}
523
540
}
524
541
};
525
542
@@ -1568,6 +1585,14 @@ export function InstalledScriptsTab() {
0 commit comments