mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
fix(image): hide button issues [EE-4166] (#7845)
* fix(image): hide button issues [EE-4166]
This commit is contained in:
parent
cb9fe2606c
commit
446febb0f6
3 changed files with 7 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue