mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(ui): cluster setup page done EE-3705 (#7267)
This commit is contained in:
parent
9a92b97b7e
commit
3645ff7459
5 changed files with 88 additions and 65 deletions
|
@ -15,6 +15,7 @@ export interface Props {
|
|||
name?: string;
|
||||
tooltip?: string;
|
||||
labelClass?: string;
|
||||
switchClass?: string;
|
||||
dataCy?: string;
|
||||
disabled?: boolean;
|
||||
featureId?: FeatureId;
|
||||
|
@ -35,6 +36,7 @@ export function SwitchField({
|
|||
onChange,
|
||||
featureId,
|
||||
switchValues,
|
||||
switchClass,
|
||||
}: Props) {
|
||||
const toggleName = name ? `toggle_${name}` : '';
|
||||
|
||||
|
@ -51,7 +53,7 @@ export function SwitchField({
|
|||
{tooltip && <Tooltip message={tooltip} />}
|
||||
</span>
|
||||
<Switch
|
||||
className="space-right"
|
||||
className={clsx('space-right', switchClass)}
|
||||
name={toggleName}
|
||||
id={toggleName}
|
||||
checked={checked}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue