mirror of https://github.com/portainer/portainer
feat(kubernetes): add rolling restart button teaser [EE-4510] (#8126)
* rolling restart teaser button * add be only rolling restart * move position of buttonpull/8185/head
parent
a1528475ba
commit
2188005b48
@ -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>
|
||||
);
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
import { FeatureId } from '@/react/portainer/feature-flags/enums';
|
||||
|
||||
import { Button } from '@@/buttons';
|
||||
import { TooltipWithChildren } from '@@/Tip/TooltipWithChildren';
|
||||
|
||||
interface Props {
|
||||
featureId: FeatureId;
|
||||
}
|
||||
export function YAMLReplace({ featureId }: Props) {
|
||||
return (
|
||||
<TooltipWithChildren
|
||||
className="float-right"
|
||||
heading="Apply YAML changes"
|
||||
BEFeatureID={featureId}
|
||||
message="Applies any changes that you make in the YAML editor by calling the Kubernetes API to patch the relevant resources. Any resource removals or unexpected resource additions that you make in the YAML will be ignored. Note that editing is disabled for resources in namespaces marked as system."
|
||||
>
|
||||
<div className="float-right">
|
||||
<Button
|
||||
type="button"
|
||||
color="warninglight"
|
||||
size="small"
|
||||
onClick={() => {}}
|
||||
disabled
|
||||
>
|
||||
Apply changes
|
||||
</Button>
|
||||
</div>
|
||||
</TooltipWithChildren>
|
||||
);
|
||||
}
|
Loading…
Reference in new issue