mirror of https://github.com/portainer/portainer
fix(kubeshell): add back data-cy EE-4054 (#7538)
parent
c17baa36ef
commit
8d304b78cb
|
@ -101,6 +101,12 @@ fieldset[disabled] .btn {
|
||||||
background-color: var(--ui-gray-3);
|
background-color: var(--ui-gray-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-link {
|
||||||
|
@apply text-blue-8 hover:text-blue-9 disabled:text-gray-5;
|
||||||
|
@apply th-dark:text-blue-8 th-dark:hover:text-blue-7;
|
||||||
|
@apply th-highcontrast:text-blue-8 th-highcontrast:hover:text-blue-7;
|
||||||
|
}
|
||||||
|
|
||||||
.hyperlink,
|
.hyperlink,
|
||||||
.hyperlink:focus {
|
.hyperlink:focus {
|
||||||
color: var(--ui-blue-8);
|
color: var(--ui-blue-8);
|
||||||
|
|
|
@ -131,10 +131,18 @@ export function KubeCtlShell({ environmentId, onClose }: Props) {
|
||||||
kubectl shell
|
kubectl shell
|
||||||
</div>
|
</div>
|
||||||
<div className={clsx(styles.actions, 'space-x-8')}>
|
<div className={clsx(styles.actions, 'space-x-8')}>
|
||||||
<Button color="link" onClick={clearScreen}>
|
<Button
|
||||||
|
color="link"
|
||||||
|
onClick={clearScreen}
|
||||||
|
data-cy="k8sShell-refreshButton"
|
||||||
|
>
|
||||||
<Icon icon="rotate-cw" feather size="md" />
|
<Icon icon="rotate-cw" feather size="md" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button color="link" onClick={toggleMinimize}>
|
<Button
|
||||||
|
color="link"
|
||||||
|
onClick={toggleMinimize}
|
||||||
|
data-cy={shell.minimized ? 'k8sShell-restore' : 'k8sShell-minimise'}
|
||||||
|
>
|
||||||
<Icon
|
<Icon
|
||||||
icon={shell.minimized ? 'maximize-2' : 'minimize-2'}
|
icon={shell.minimized ? 'maximize-2' : 'minimize-2'}
|
||||||
feather
|
feather
|
||||||
|
@ -144,7 +152,11 @@ export function KubeCtlShell({ environmentId, onClose }: Props) {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button color="link" onClick={handleClose}>
|
<Button
|
||||||
|
color="link"
|
||||||
|
onClick={handleClose}
|
||||||
|
data-cy="k8sShell-closeButton"
|
||||||
|
>
|
||||||
<Icon icon="x" feather size="md" />
|
<Icon icon="x" feather size="md" />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue