Refactor IOModal to improve session management and functionality
This commit is contained in:
parent
6fcf99aed9
commit
8063fd9a97
1 changed files with 21 additions and 6 deletions
|
|
@ -348,15 +348,30 @@ export default function IOModal({
|
||||||
setSelectedViewField(undefined);
|
setSelectedViewField(undefined);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ShadTooltip content={"delete"}>
|
<ShadTooltip
|
||||||
<IconComponent
|
styleClasses="z-50"
|
||||||
name="Trash2"
|
content={"delete"}
|
||||||
className="h-4 w-4"
|
>
|
||||||
></IconComponent>
|
<div>
|
||||||
|
<IconComponent
|
||||||
|
name="Trash2"
|
||||||
|
className="h-4 w-4"
|
||||||
|
></IconComponent>
|
||||||
|
</div>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
</Button>
|
</Button>
|
||||||
<div>
|
<div>
|
||||||
<ShadTooltip content={"hello"}>
|
<ShadTooltip
|
||||||
|
styleClasses="z-50"
|
||||||
|
content={
|
||||||
|
flow_sessions.some(
|
||||||
|
(f_session) =>
|
||||||
|
f_session?.session_id === session,
|
||||||
|
)
|
||||||
|
? "Active Session"
|
||||||
|
: "Inactive Session"
|
||||||
|
}
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-2 w-2 rounded-full",
|
"h-2 w-2 rounded-full",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue