Skip to content

Commit

Permalink
add Events
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Aug 26, 2024
1 parent ff54785 commit ec77541
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/resources/ServiceAccounts/ServiceAccountDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import ServiceAccountCreate from './ServiceAccountCreate';
import { Button } from '@ui5/webcomponents-react';
import { TokenRequestModal } from './TokenRequestModal/TokenRequestModal';
import { ResourceDescription } from 'resources/ServiceAccounts';
import { EventsList } from 'shared/components/EventsList';
import { filterByResource } from 'hooks/useMessageList';

const ServiceAccountSecrets = serviceAccount => {
const namespace = serviceAccount.metadata.namespace;
Expand Down Expand Up @@ -70,6 +72,15 @@ export default function ServiceAccountDetails(props) {
},
];

const Events = () => (
<EventsList
key="events"
namespace={props.namespace}
filter={filterByResource('ServiceAccount', props.resourceName)}
hideInvolvedObjects={true}
/>
);

const headerActions = [
<Button
key="generate-token-request"
Expand All @@ -85,6 +96,7 @@ export default function ServiceAccountDetails(props) {
customComponents={[
ServiceAccountSecrets,
ServiceAccountImagePullSecrets,
Events,
]}
customColumns={customColumns}
createResourceForm={ServiceAccountCreate}
Expand Down

0 comments on commit ec77541

Please sign in to comment.