mirror of https://github.com/portainer/portainer
fix(image): hide button issues [EE-4166] (#7845)
* fix(image): hide button issues [EE-4166]pull/7924/head
parent
cb9fe2606c
commit
446febb0f6
|
@ -1,4 +1,4 @@
|
||||||
<a class="ml-5 vertical-center" href="{{ $ctrl.url }}" target="_blank" rel="noopener" ng-if="$ctrl.limitedToBE">
|
<a class="ml-5 vertical-center be-indicator" href="{{ $ctrl.url }}" target="_blank" rel="noopener" ng-if="$ctrl.limitedToBE">
|
||||||
<ng-transclude></ng-transclude>
|
<ng-transclude></ng-transclude>
|
||||||
<pr-icon icon="'briefcase'" feather="true" class-name="'icon icon-sm vertical-center'"></pr-icon>
|
<pr-icon icon="'briefcase'" feather="true" class-name="'icon icon-sm vertical-center'"></pr-icon>
|
||||||
<span class="be-indicator-label">Business Edition Feature</span>
|
<span class="be-indicator-label">Business Edition Feature</span>
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
<pr-icon icon="'users'" feather="true"></pr-icon>Manage access
|
<pr-icon icon="'users'" feather="true"></pr-icon>Manage access
|
||||||
</button>
|
</button>
|
||||||
<be-feature-indicator feature="$ctrl.limitedFeature" ng-if="$ctrl.canBrowse(item)">
|
<be-feature-indicator feature="$ctrl.limitedFeature" ng-if="$ctrl.canBrowse(item)">
|
||||||
<span class="text-muted space-left" style="padding-right: 5px"> <pr-icon icon="'search'" feather="true"></pr-icon> Browse </span>
|
<span class="text-muted" style="padding-right: 5px"> <pr-icon icon="'search'" feather="true"></pr-icon> Browse </span>
|
||||||
</be-feature-indicator>
|
</be-feature-indicator>
|
||||||
|
|
||||||
<span ng-if="!$ctrl.canBrowse(item) && !$ctrl.canManageAccess(item)"> - </span>
|
<span ng-if="!$ctrl.canBrowse(item) && !$ctrl.canManageAccess(item)"> - </span>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { Eye, EyeOff } from 'react-feather';
|
||||||
|
|
||||||
import { notifySuccess } from '@/portainer/services/notifications';
|
import { notifySuccess } from '@/portainer/services/notifications';
|
||||||
import { FeatureId } from '@/portainer/feature-flags/enums';
|
import { FeatureId } from '@/portainer/feature-flags/enums';
|
||||||
import { isLimitedToBE } from '@/portainer/feature-flags/feature-flags.service';
|
import { isLimitedToBE } from '@/portainer/feature-flags/feature-flags.service';
|
||||||
|
@ -8,7 +10,6 @@ import {
|
||||||
|
|
||||||
import { Tooltip } from '@@/Tip/Tooltip';
|
import { Tooltip } from '@@/Tip/Tooltip';
|
||||||
import { Button } from '@@/buttons';
|
import { Button } from '@@/buttons';
|
||||||
import { Icon } from '@@/Icon';
|
|
||||||
import { BEFeatureIndicator } from '@@/BEFeatureIndicator';
|
import { BEFeatureIndicator } from '@@/BEFeatureIndicator';
|
||||||
|
|
||||||
export function DefaultRegistryAction() {
|
export function DefaultRegistryAction() {
|
||||||
|
@ -29,11 +30,11 @@ export function DefaultRegistryAction() {
|
||||||
{!hideDefaultRegistry ? (
|
{!hideDefaultRegistry ? (
|
||||||
<div className="vertical-center">
|
<div className="vertical-center">
|
||||||
<Button
|
<Button
|
||||||
className="btn btn-xs btn-light vertical-center"
|
color="danger"
|
||||||
|
icon={EyeOff}
|
||||||
onClick={() => handleShowOrHide(true)}
|
onClick={() => handleShowOrHide(true)}
|
||||||
disabled={isLimited}
|
disabled={isLimited}
|
||||||
>
|
>
|
||||||
<Icon icon="eye-off" feather />
|
|
||||||
Hide for all users
|
Hide for all users
|
||||||
</Button>
|
</Button>
|
||||||
<BEFeatureIndicator featureId={FeatureId.HIDE_DOCKER_HUB_ANONYMOUS} />
|
<BEFeatureIndicator featureId={FeatureId.HIDE_DOCKER_HUB_ANONYMOUS} />
|
||||||
|
@ -46,11 +47,7 @@ export function DefaultRegistryAction() {
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="vertical-center">
|
<div className="vertical-center">
|
||||||
<Button
|
<Button icon={Eye} onClick={() => handleShowOrHide(false)}>
|
||||||
className="btn btn-xs btn-success vertical-center"
|
|
||||||
onClick={() => handleShowOrHide(false)}
|
|
||||||
>
|
|
||||||
<Icon icon="eye" feather />
|
|
||||||
Show for all users
|
Show for all users
|
||||||
</Button>
|
</Button>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
|
Loading…
Reference in New Issue