|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
import { Eye, EyeOff } from 'react-feather';
|
|
|
|
|
|
|
|
|
|
import { notifySuccess } from '@/portainer/services/notifications';
|
|
|
|
|
import { FeatureId } from '@/portainer/feature-flags/enums';
|
|
|
|
|
import { isLimitedToBE } from '@/portainer/feature-flags/feature-flags.service';
|
|
|
|
@ -8,7 +10,6 @@ import {
|
|
|
|
|
|
|
|
|
|
import { Tooltip } from '@@/Tip/Tooltip';
|
|
|
|
|
import { Button } from '@@/buttons';
|
|
|
|
|
import { Icon } from '@@/Icon';
|
|
|
|
|
import { BEFeatureIndicator } from '@@/BEFeatureIndicator';
|
|
|
|
|
|
|
|
|
|
export function DefaultRegistryAction() {
|
|
|
|
@ -29,11 +30,11 @@ export function DefaultRegistryAction() {
|
|
|
|
|
{!hideDefaultRegistry ? (
|
|
|
|
|
<div className="vertical-center">
|
|
|
|
|
<Button
|
|
|
|
|
className="btn btn-xs btn-light vertical-center"
|
|
|
|
|
color="danger"
|
|
|
|
|
icon={EyeOff}
|
|
|
|
|
onClick={() => handleShowOrHide(true)}
|
|
|
|
|
disabled={isLimited}
|
|
|
|
|
>
|
|
|
|
|
<Icon icon="eye-off" feather />
|
|
|
|
|
Hide for all users
|
|
|
|
|
</Button>
|
|
|
|
|
<BEFeatureIndicator featureId={FeatureId.HIDE_DOCKER_HUB_ANONYMOUS} />
|
|
|
|
@ -46,11 +47,7 @@ export function DefaultRegistryAction() {
|
|
|
|
|
</div>
|
|
|
|
|
) : (
|
|
|
|
|
<div className="vertical-center">
|
|
|
|
|
<Button
|
|
|
|
|
className="btn btn-xs btn-success vertical-center"
|
|
|
|
|
onClick={() => handleShowOrHide(false)}
|
|
|
|
|
>
|
|
|
|
|
<Icon icon="eye" feather />
|
|
|
|
|
<Button icon={Eye} onClick={() => handleShowOrHide(false)}>
|
|
|
|
|
Show for all users
|
|
|
|
|
</Button>
|
|
|
|
|
<Tooltip
|
|
|
|
|