mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(helm): uninstall helm app from details view [r8s-285] (#648)
This commit is contained in:
parent
6fcf1893d3
commit
bbe94f55b6
5 changed files with 133 additions and 18 deletions
|
@ -0,0 +1,30 @@
|
|||
import { EnvironmentId } from '@/react/portainer/environments/types';
|
||||
import { useAuthorizations } from '@/react/hooks/useUser';
|
||||
|
||||
import { UninstallButton } from './UninstallButton';
|
||||
|
||||
export function ChartActions({
|
||||
environmentId,
|
||||
releaseName,
|
||||
namespace,
|
||||
}: {
|
||||
environmentId: EnvironmentId;
|
||||
releaseName: string;
|
||||
namespace?: string;
|
||||
}) {
|
||||
const { authorized } = useAuthorizations('K8sApplicationsW');
|
||||
|
||||
if (!authorized) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="inline-flex gap-x-2">
|
||||
<UninstallButton
|
||||
environmentId={environmentId}
|
||||
releaseName={releaseName}
|
||||
namespace={namespace}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue