Blueprints: Rename Clear selection button and center it
This renames the Clear selection button in the blueprints side bar and aligns it to the center.
This commit is contained in:
parent
1a784f4ded
commit
5ae3da9b6c
1 changed files with 14 additions and 8 deletions
|
|
@ -9,6 +9,8 @@ import {
|
|||
EmptyStateFooter,
|
||||
EmptyStateHeader,
|
||||
EmptyStateIcon,
|
||||
Flex,
|
||||
FlexItem,
|
||||
SearchInput,
|
||||
Spinner,
|
||||
Stack,
|
||||
|
|
@ -100,14 +102,18 @@ const BlueprintsSidebar = () => {
|
|||
<BlueprintSearch blueprintsTotal={blueprintsTotal} />
|
||||
</StackItem>
|
||||
<StackItem>
|
||||
<Button
|
||||
ouiaId={`clear-selected-blueprint-button`}
|
||||
variant="link"
|
||||
isDisabled={!selectedBlueprintId}
|
||||
onClick={() => dispatch(setBlueprintId(undefined))}
|
||||
>
|
||||
Clear selection
|
||||
</Button>
|
||||
<Flex justifyContent={{ default: 'justifyContentCenter' }}>
|
||||
<FlexItem>
|
||||
<Button
|
||||
ouiaId={`clear-selected-blueprint-button`}
|
||||
variant="link"
|
||||
isDisabled={!selectedBlueprintId}
|
||||
onClick={() => dispatch(setBlueprintId(undefined))}
|
||||
>
|
||||
View all
|
||||
</Button>
|
||||
</FlexItem>
|
||||
</Flex>
|
||||
</StackItem>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue