1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 22:05:23 +02:00

fix(helm): add clarifying text and new badge to helm user repo settings table [EE-6609] (#11018)
Some checks failed
ci / build_images (map[arch:amd64 platform:linux]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
ci / build_images (map[arch:arm64 platform:linux]) (push) Has been cancelled
/ triage (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Test / test-client (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:linux]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
Test / test-server (map[arch:arm64 platform:linux]) (push) Has been cancelled
ci / build_manifests (push) Has been cancelled

This commit is contained in:
Matt Hook 2024-01-26 12:37:13 +13:00 committed by GitHub
parent 2248ce0173
commit 441a8bbbbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import helm from '@/assets/ico/vendor/helm.svg?c';
import { Datatable } from '@@/datatables';
import { createPersistedStore } from '@@/datatables/types';
import { useTableState } from '@@/datatables/useTableState';
import { TextTip } from '@@/Tip/TextTip';
import { columns } from './columns';
import { HelmRepositoryDatatableActions } from './HelmRepositoryDatatableActions';
@ -43,6 +44,7 @@ export function HelmRepositoryDatatable() {
<Datatable
getRowId={(row) => String(row.Id)}
dataset={helmRepos}
description={<HelmDatatableDescription />}
settingsManager={tableState}
columns={columns}
title="Helm Repositories"
@ -56,3 +58,14 @@ export function HelmRepositoryDatatable() {
/>
);
}
function HelmDatatableDescription() {
return (
<TextTip color="blue" className="mb-3">
Adding a Helm repo here only makes it available in your own user
account&apos;s Portainer UI. Helm charts are pulled down from these repos
(plus the globally-set Helm repo) and shown in the Create from Manifest
screen&apos;s Helm charts list.
</TextTip>
);
}

View file

@ -1,3 +1,17 @@
import { Badge } from '@@/Badge';
import { columnHelper } from './helper';
export const url = columnHelper.accessor('URL', { id: 'url' });
export const url = columnHelper.accessor('URL', {
id: 'url',
cell: ({ row }) => (
<div className="flex">
{row.original.URL}
{row.original.Global && (
<Badge type="success" className="ml-2">
Globally-set
</Badge>
)}
</div>
),
});