Skip to content

Commit

Permalink
updated CredentialTestTable.tsx
Browse files Browse the repository at this point in the history
updated DashboardLayoutToolbar.tsx

updated DashboardLayoutToolbar.tsx pass object correctly

updated DashboardLayoutToolbar.tsx pass object correctly2

updated DashboardLayoutToolbar.tsx pass object correctly3

updated DashboardLayoutToolbar.tsx pass object correctly4
  • Loading branch information
aali309 committed Jan 11, 2024
1 parent 20d992e commit 4a3d5a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
9 changes: 6 additions & 3 deletions src/app/Dashboard/DashboardLayoutToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,13 @@ export const DashboardLayoutToolbar: React.FC<DashboardLayoutToolbarProps> = (_p
() => (
<PF5Dropdown
onSelect={onCreateDropdownSelect}
onOpenChange={(open) => setIsCreateDropdownOpen(open)}
toggle={(toggleRef: React.Ref<MenuToggleElement>) => (
<MenuToggle
ref={toggleRef}
className="dashboard-layout-create-dropdown-toggle"
splitButton={[
splitButtonOptions={{
items:[
<DropdownItem
key="action"
onClick={(_e) => {
Expand All @@ -304,10 +306,11 @@ export const DashboardLayoutToolbar: React.FC<DashboardLayoutToolbarProps> = (_p
{t('DashboardLayoutToolbar.NEW_LAYOUT')}
</span>
</DropdownItem>,
]}
]
}}
variant="primary"
//splitButtonVariant="action"
onToggle={(_event, open) => setIsCreateDropdownOpen(open)}

>
<EllipsisVIcon />
</MenuToggle>
Expand Down
24 changes: 14 additions & 10 deletions src/app/SecurityPanel/Credentials/CredentialTestTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ import {
Tooltip,
ValidatedOptions,
EmptyStateHeader,
DropdownList,
Select,
SelectOption,
} from '@patternfly/react-core';
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
//import { Select, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
import { ExclamationCircleIcon, SearchIcon, WarningTriangleIcon } from '@patternfly/react-icons';
import {
InnerScrollContainer,
Expand Down Expand Up @@ -371,19 +374,20 @@ const StatusFilter: React.FC<StatusFilterProps> = ({ onChange, filters, ...props
return (
<Select
{...props}
variant={SelectVariant.checkbox}
role="menu"
aria-label="Status"
onToggle={handleToggle}
toggle={handleToggle}
onSelect={handleSelect}
selections={filters}
selected={filters}
isOpen={isOpen}
placeholderText="Status"
>
{Object.values(CredentialTestState).map((state) => (
<SelectOption key={state} value={state}>
<Label color={getColor(state)}>{state}</Label>
</SelectOption>
))}
<DropdownList>
{Object.values(CredentialTestState).map((state) => (
<SelectOption key={state} value={state}>
<Label color={getColor(state)}>{state}</Label>
</SelectOption>
))}
</DropdownList>
</Select>
);
};

0 comments on commit 4a3d5a1

Please sign in to comment.