Skip to content

Commit c68bc22

Browse files
authored
feat: remove bucket and telegraf titles from EditTokenOvelray (#3400)
* feat: removed bucket and telegraf names title from tokens * fix: prettier
1 parent 1a738ba commit c68bc22

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/authorizations/components/redesigned/EditResourceAccordion.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ export class EditResourceAccordion extends Component<Props> {
103103
<IndividualAccordionBody
104104
resourceName={resource}
105105
permissions={filteredNames}
106-
title="Individual Telegraf Configuration Names"
107106
disabled={true}
108107
/>
109108
)}
@@ -125,7 +124,6 @@ export class EditResourceAccordion extends Component<Props> {
125124
<IndividualAccordionBody
126125
resourceName={resource}
127126
permissions={filteredNames}
128-
title="Individual Bucket Names"
129127
disabled={true}
130128
/>
131129
)}

src/authorizations/components/redesigned/IndividualAccordionBody.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Props {
2121
resourceName: string
2222
permissions: any
2323
onToggle?: (name, id, permission) => void
24-
title: string
24+
title?: string
2525
disabled: boolean
2626
}
2727

@@ -96,9 +96,12 @@ export const IndividualAccordionBody: FC<Props> = props => {
9696

9797
return (
9898
<>
99-
<Accordion.AccordionBodyItem className="resource-accordion-body">
100-
{title}
101-
</Accordion.AccordionBodyItem>
99+
{title ? (
100+
<Accordion.AccordionBodyItem className="resource-accordion-body">
101+
{title}
102+
</Accordion.AccordionBodyItem>
103+
) : null}
104+
102105
{permissions
103106
? Object.keys(sortedPermissions).map(key => {
104107
return (

0 commit comments

Comments
 (0)