Skip to content

Commit

Permalink
feat: improve display of events and wildcard event filters
Browse files Browse the repository at this point in the history
  • Loading branch information
okaufmann committed Oct 21, 2023
1 parent b0afed5 commit cec0796
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/details/notification/alert-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface AlertDetailsState {
}

const {
Component: { DrawerItem },
Component: { DrawerItem, Badge },
} = Renderer

export class FluxCDAlertDetails extends React.Component<
Expand Down Expand Up @@ -76,9 +76,7 @@ export class FluxCDAlertDetails extends React.Component<
{object.spec.eventSources.map((eventSource: any, index: number) => (
<li key={index}>
{eventSource.name === '*' ? (
<span>
{eventSource.kind}:{eventSource.name}
</span>
<Badge label={`${eventSource.kind}:${eventSource.name}`} />
) : (
<a
href="#"
Expand Down
4 changes: 3 additions & 1 deletion src/components/details/notification/receiver-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export class FluxCDReceiverDetails extends React.Component<
</DrawerItem>
<DrawerItem name="Events">
{object.spec.events.map((e: string, index: number) => (
<li key={index}>{e}</li>
<li key={index}>
<Badge label={e} />
</li>
))}
</DrawerItem>
<DrawerItem name="Resources">
Expand Down

0 comments on commit cec0796

Please sign in to comment.