portainer/app/react/components/ImageConfigFieldset/utils.ts

13 lines
292 B
TypeScript
Raw Normal View History

import {
Registry,
RegistryTypes,
} from '@/react/portainer/registries/types/registry';
export function getIsDockerHubRegistry(registry?: Registry | null) {
return (
!registry ||
registry.Type === RegistryTypes.DOCKERHUB ||
registry.Type === RegistryTypes.ANONYMOUS
);
}