mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(rolling-restart): wording and icon changes [EE-4834] (#8239)
* icon and wording changes * fix inconsistencies and grammar * fix(ui/buttons): show tooltip * Change icon and confirmation dialog * edit icon * rename be-only-button to be-teaser-button for consistency Co-authored-by: Chaim Lev-Ari <chaim.levi-ari@portainer.io>
This commit is contained in:
parent
1d42db93f1
commit
4dc643acd9
6 changed files with 45 additions and 36 deletions
|
@ -1,44 +0,0 @@
|
|||
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>
|
||||
);
|
||||
}
|
|
@ -4,7 +4,6 @@ import { r2a } from '@/react-tools/react2angular';
|
|||
import { withCurrentUser } from '@/react-tools/withCurrentUser';
|
||||
import { withReactQuery } from '@/react-tools/withReactQuery';
|
||||
import { withUIRouter } from '@/react-tools/withUIRouter';
|
||||
import { BEOnlyButton } from '@/kubernetes/react/views/beOnlyButton';
|
||||
import { IngressesDatatableView } from '@/react/kubernetes/ingresses/IngressDatatable';
|
||||
import { CreateIngressView } from '@/react/kubernetes/ingresses/CreateIngressView';
|
||||
|
||||
|
@ -20,15 +19,4 @@ export const viewsModule = angular
|
|||
.component(
|
||||
'kubernetesIngressesCreateView',
|
||||
r2a(withUIRouter(withReactQuery(withCurrentUser(CreateIngressView))), [])
|
||||
)
|
||||
.component(
|
||||
'beOnlyButton',
|
||||
r2a(withUIRouter(withReactQuery(withCurrentUser(BEOnlyButton))), [
|
||||
'featureId',
|
||||
'heading',
|
||||
'message',
|
||||
'buttonText',
|
||||
'className',
|
||||
'icon',
|
||||
])
|
||||
).name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue