add View Session button to OpsEvent dialog

This commit is contained in:
Oliver Kieselbach
2026-06-10 00:17:43 +02:00
parent d5f68ea320
commit 59fa22a28e
2 changed files with 10 additions and 2 deletions
@@ -1 +1 @@
1014
1015
@@ -559,9 +559,17 @@ export function OpsEventsSection({
return (
<div className="mt-5 pt-4 border-t border-gray-200 dark:border-gray-700">
<p className="text-xs text-gray-500 dark:text-gray-400 mb-2">
Quick-action against the device behind this session:
Review the session, or quick-action against the device behind it:
</p>
<div className="flex flex-wrap gap-2">
<Link
href={`/sessions/${encodeURIComponent(sessionId)}`}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center px-3 py-1.5 rounded-md text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 dark:bg-blue-900/40 dark:text-blue-200 dark:hover:bg-blue-900/60 border border-blue-300 dark:border-blue-700"
>
View session
</Link>
<Link
href={`${baseHref}&action=Block`}
onClick={() => setSelectedEvent(null)}