Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit a68f7db

Browse files
options show up but all toggle not one
Signed-off-by: greg pereira <grpereir@redhat.com>
1 parent fb2e69b commit a68f7db

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/app/playground/endpoints/page.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ import {
3333
PageSection,
3434
Popover,
3535
TextInput,
36-
Title
36+
Title,
37+
ValidatedOptions
3738
} from '@patternfly/react-core';
3839
import { BanIcon, CheckCircleIcon, EyeSlashIcon, EllipsisVIcon , EyeIcon, QuestionCircleIcon } from '@patternfly/react-icons';
3940

@@ -333,14 +334,16 @@ const validateEndpointData = (endpoint: ExtendedEndpoint): boolean => {
333334
) : null} */}
334335
{endpointOptionsOpen ? (
335336
<Dropdown
336-
onOpenChange={(isEndpointOptionsOpen) => setEndpointOptionsOpen(isEndpointOptionsOpen)}
337+
onOpenChange={() => setEndpointOptionsOpen(true)}
337338
onSelect={() => setEndpointOptionsOpen(false)}
338339
toggle={(toggleRef) => (
339340
<MenuToggle
340341
aria-label="actions"
341342
variant="plain"
342343
ref={toggleRef}
343-
onClick={() => setEndpointOptionsOpen(!endpointOptionsOpen)}
344+
onClick={() => {
345+
setEndpointOptionsOpen(!endpointOptionsOpen)}
346+
}
344347
isExpanded={endpointOptionsOpen}
345348
>
346349
<p> SOMETHING SHOW UP</p>
@@ -350,10 +353,10 @@ const validateEndpointData = (endpoint: ExtendedEndpoint): boolean => {
350353
isOpen={endpointOptionsOpen}
351354
ouiaId="ModelEndpointDropdown"
352355
>
353-
<DropdownList>
356+
{/* <DropdownList>
354357
<DropdownItem >Clear chat</DropdownItem>
355-
{/* {onClose ? <DropdownItem onClick={onClose}>Close chat</DropdownItem> : null} */}
356-
</DropdownList>
358+
{onClose ? <DropdownItem onClick={onClose}>Close chat</DropdownItem> : null}
359+
</DropdownList> */}
357360
</Dropdown>
358361
) : null }
359362
</DataListAction>

0 commit comments

Comments
 (0)