Skip to content

Commit

Permalink
Merge pull request #1573 from akto-api-security/hotfix/fix_bulk_actions
Browse files Browse the repository at this point in the history
Fixing minor bugs
  • Loading branch information
ayushaga14 authored Oct 1, 2024
2 parents a43f12c + 8ff2528 commit 8501bb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ChevronRightMinor, ChevronDownMinor } from "@shopify/polaris-icons"
import { Badge, Box, Checkbox, HorizontalStack, Icon, Text, Tooltip } from '@shopify/polaris';

function PrettifyDisplayName({name, level, isTerminal, isOpen, selectItems, collectionIds}) {
const selectedItems = TableStore.getState().selectedItems
const selectedItems = TableStore.getState().selectedItems.flat()
const [checked, setChecked] = useState(false)

const checkedVal = collectionIds.every(id => selectedItems.includes(id))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,14 @@ const treeViewFunc = {
return{
...c,
id: c.apiCollectionIds || c.id,
displayNameComp: c?.isTerminal ? c.displayName: (
displayNameComp: c?.isTerminal ? (
<Box maxWidth="180px">
<TooltipText tooltip={c.displayName} text={c.displayName} />
</Box>
)
: (
<HorizontalStack gap={"1"} align="space-between" wrap={false}>
<Box maxWidth="180px">
<Box maxWidth="200px">
<TooltipText tooltip={c.level} text={c.level} textProps={{variant: 'headingSm'}} />
</Box>
<Badge size="small" status="new">{c?.apiCollectionIds?.length}</Badge>
Expand Down

0 comments on commit 8501bb2

Please sign in to comment.