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

feat(kubernetes): add rolling restart button teaser [EE-4510] (#8126)

* rolling restart teaser button

* add be only rolling restart

* move position of button
This commit is contained in:
Matt Hook 2022-12-12 14:30:05 +13:00 committed by GitHub
parent a1528475ba
commit 2188005b48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 75 additions and 41 deletions

View file

@ -0,0 +1,44 @@
import { ReactNode } from 'react';
import { FeatureId } from '@/react/portainer/feature-flags/enums';
import { Button } from '@@/buttons';
import { TooltipWithChildren } from '@@/Tip/TooltipWithChildren';
interface Props {
featureId: FeatureId;
heading: string;
message: string;
buttonText: string;
className?: string;
icon?: ReactNode;
}
export function BEOnlyButton({
featureId,
heading,
message,
buttonText,
className,
icon,
}: Props) {
return (
<TooltipWithChildren
className={className}
heading={heading}
BEFeatureID={featureId}
message={message}
>
<Button
icon={icon}
type="button"
color="warninglight"
size="small"
onClick={() => {}}
disabled
>
{buttonText}
</Button>
</TooltipWithChildren>
);
}