diff --git a/ui-react/apps/console/src/components/ManageTagsDrawer.tsx b/ui-react/apps/console/src/components/ManageTagsDrawer.tsx index 66abd6f6d3d..cf9938f9e33 100644 --- a/ui-react/apps/console/src/components/ManageTagsDrawer.tsx +++ b/ui-react/apps/console/src/components/ManageTagsDrawer.tsx @@ -133,6 +133,7 @@ export default function ManageTagsDrawer({ bodyClassName="flex-1 flex flex-col overflow-hidden" footer={( ) : ( - - - - - )} + { + setShowDeleteLogs(false); + setDeleteLogsError(null); + }} + onConfirm={handleDeleteLogs} + title="Delete Recording" + description="Are you sure you want to delete the session recording? The recording will be permanently removed." + confirmLabel="Delete Recording" + variant="danger" + errorMessage={deleteLogsError} + /> {/* Close Session Dialog */} - {showClose && ( -
-
setShowClose(false)} - /> -
-
-
- -
-
-

- Close Session -

-

- This will terminate the SSH connection -

-
-
-

- Are you sure you want to close the session for{" "} - - {session.username} - {" "} - on{" "} - - {session.device?.name ?? - (session.device_uid ?? "").substring(0, 8)} - - ? -

- {closeSession.error != null && ( -

- Failed to close session. Check your permissions. -

- )} -
- - -
-
-
- )} + { + setShowClose(false); + setCloseError(null); + }} + onConfirm={handleClose} + title="Close Session" + description={ + <> + Are you sure you want to close the session for{" "} + + {session.username} + {" "} + on{" "} + + {session.device?.name ?? (session.device_uid ?? "").substring(0, 8)} + + ? + + } + confirmLabel="Close Session" + variant="danger" + errorMessage={closeError} + /> {/* Recording error banner */} {logsError && ( diff --git a/ui-react/apps/console/src/pages/Settings.tsx b/ui-react/apps/console/src/pages/Settings.tsx index cdc1d4d1708..a157b0ddacc 100644 --- a/ui-react/apps/console/src/pages/Settings.tsx +++ b/ui-react/apps/console/src/pages/Settings.tsx @@ -154,6 +154,7 @@ function EditNameDrawer({ Cancel