1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 14:59:41 +02:00

feat(helm): helm actions [r8s-259] (#715)

Co-authored-by: James Player <james.player@portainer.io>
Co-authored-by: Cara Ryan <cara.ryan@portainer.io>
Co-authored-by: stevensbkang <skan070@gmail.com>
This commit is contained in:
Ali 2025-05-13 22:15:04 +12:00 committed by GitHub
parent dfa32b6755
commit 4ee349bd6b
117 changed files with 4161 additions and 696 deletions

View file

@ -96,6 +96,7 @@ export function ApplicationsDatatable({
item={row.original}
hideStacks={hideStacks}
areSecretsRestricted={!!restrictSecretsQuery.data}
selectDisabled={!hasWriteAuth}
/>
)}
renderTableActions={(selectedItems) =>

View file

@ -11,19 +11,22 @@ export function SubRow({
item,
hideStacks,
areSecretsRestricted,
selectDisabled,
}: {
item: ApplicationRowData;
hideStacks: boolean;
areSecretsRestricted: boolean;
selectDisabled: boolean;
}) {
const {
user: { Username: username },
} = useCurrentUser();
const colSpan = hideStacks ? 7 : 8;
const alignColSpan = selectDisabled ? 1 : 2;
return (
<tr className={clsx({ 'secondary-body': !item.KubernetesApplications })}>
<td colSpan={2} />
<td colSpan={alignColSpan} />
<td colSpan={colSpan} className="datatable-padding-vertical">
{item.KubernetesApplications ? (
<InnerTable