mirror of https://github.com/portainer/portainer
fix(ui): fix docker images page error on pageheader EE-3668 (#7212)
* fix docker images page error with link on page-headerpull/7361/head
parent
52ac54f15c
commit
aa830a0e58
|
@ -41,7 +41,11 @@ function renderCrumb(crumb: Crumb | string) {
|
||||||
|
|
||||||
if (crumb.link) {
|
if (crumb.link) {
|
||||||
return (
|
return (
|
||||||
<Link to={crumb.link} params={crumb.linkParams}>
|
<Link
|
||||||
|
to={crumb.link}
|
||||||
|
params={crumb.linkParams}
|
||||||
|
className="text-blue-9 hover:underline"
|
||||||
|
>
|
||||||
{crumb.label}
|
{crumb.label}
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
|
@ -39,13 +39,13 @@ export function PageHeader({
|
||||||
<HeaderTitle title={title}>
|
<HeaderTitle title={title}>
|
||||||
{reload && (
|
{reload && (
|
||||||
<Button
|
<Button
|
||||||
color="link"
|
color="none"
|
||||||
size="medium"
|
size="large"
|
||||||
onClick={onClickedRefresh}
|
onClick={onClickedRefresh}
|
||||||
className={styles.reloadButton}
|
className={styles.reloadButton}
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
>
|
>
|
||||||
<RefreshCw className="feather icon-sm" />
|
<RefreshCw className="icon" />
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</HeaderTitle>
|
</HeaderTitle>
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
.btn-none {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
width: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-none:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
|
@ -10,6 +10,7 @@ import clsx from 'clsx';
|
||||||
import { AutomationTestingProps } from '@/types';
|
import { AutomationTestingProps } from '@/types';
|
||||||
|
|
||||||
import { Icon } from '@@/Icon';
|
import { Icon } from '@@/Icon';
|
||||||
|
import './Button.css';
|
||||||
|
|
||||||
type Type = 'submit' | 'button' | 'reset';
|
type Type = 'submit' | 'button' | 'reset';
|
||||||
type Color =
|
type Color =
|
||||||
|
@ -21,7 +22,8 @@ type Color =
|
||||||
| 'danger'
|
| 'danger'
|
||||||
| 'link'
|
| 'link'
|
||||||
| 'light'
|
| 'light'
|
||||||
| 'dangerlight';
|
| 'dangerlight'
|
||||||
|
| 'none';
|
||||||
type Size = 'xsmall' | 'small' | 'medium' | 'large';
|
type Size = 'xsmall' | 'small' | 'medium' | 'large';
|
||||||
|
|
||||||
export interface Props extends AriaAttributes, AutomationTestingProps {
|
export interface Props extends AriaAttributes, AutomationTestingProps {
|
||||||
|
|
Loading…
Reference in New Issue