Skip to content

Commit

Permalink
add config panel
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Aug 27, 2024
1 parent 43e0d4e commit 9030ed7
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/resources/Secrets/SecretDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import SecretCreate from './SecretCreate';
import { ResourceDescription } from 'resources/Secrets';
import { EventsList } from 'shared/components/EventsList';
import { filterByResource } from 'hooks/useMessageList';
import { UI5Panel } from 'shared/components/UI5Panel/UI5Panel';
import { LayoutPanelRow } from 'shared/components/LayoutPanelRow/LayoutPanelRow';

function HelmReleaseDataWrapper(secret) {
if (secret.type !== 'helm.sh/release.v1') {
Expand All @@ -28,12 +30,6 @@ export function SecretDetails(props) {
const Secret = resource => <SecretData key="secret-data" secret={resource} />;

const customColumns = [
{
header: t('secrets.headers.type'),
value: secret => {
return secret.type;
},
},
{
header: t('common.headers.owner'),
value: secret => (
Expand All @@ -54,9 +50,20 @@ export function SecretDetails(props) {
/>
);

const Configuration = secret => (
<UI5Panel
fixed
keyComponent={'storageclass-configuration'}
title={t('storage-classes.headers.configuration')}
>
<LayoutPanelRow name={t('secrets.headers.type')} value={secret.type} />
</UI5Panel>
);

return (
<ResourceDetails
customComponents={[
Configuration,
Secret,
CertificateData,
HelmReleaseDataWrapper,
Expand Down

0 comments on commit 9030ed7

Please sign in to comment.