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:
parent
a1528475ba
commit
2188005b48
8 changed files with 75 additions and 41 deletions
44
app/kubernetes/react/views/beOnlyButton/index.tsx
Normal file
44
app/kubernetes/react/views/beOnlyButton/index.tsx
Normal 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>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue