Spaces:
Running
Running
feat(delete): show delete badge only on hover and prompt user for confirmation before deletion
Browse files
frontend/src/sections/WorkspaceSection.jsx
CHANGED
|
@@ -360,9 +360,11 @@ export default function WorkspaceSection({ onBackToLanding }) {
|
|
| 360 |
<button
|
| 361 |
onClick={(e) => {
|
| 362 |
e.stopPropagation();
|
| 363 |
-
|
|
|
|
|
|
|
| 364 |
}}
|
| 365 |
-
className="absolute -top-1 -right-1 w-5 h-5 bg-red-500 hover:bg-red-600 text-white rounded-full flex items-center justify-center text-xs font-bold shadow-md z-30 cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95"
|
| 366 |
title="Hide investigation"
|
| 367 |
>
|
| 368 |
×
|
|
|
|
| 360 |
<button
|
| 361 |
onClick={(e) => {
|
| 362 |
e.stopPropagation();
|
| 363 |
+
if (window.confirm("Are you sure you want to delete this case chat?")) {
|
| 364 |
+
handleHideCase(c.case_id);
|
| 365 |
+
}
|
| 366 |
}}
|
| 367 |
+
className="absolute -top-1 -right-1 w-5 h-5 bg-red-500 hover:bg-red-600 text-white rounded-full flex items-center justify-center text-xs font-bold shadow-md z-30 cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95 opacity-0 group-hover:opacity-100"
|
| 368 |
title="Hide investigation"
|
| 369 |
>
|
| 370 |
×
|