|
|
@ -1,4 +1,5 @@
|
|
|
|
import { useState, useEffect } from 'react';
|
|
|
|
import { useState, useEffect } from 'react';
|
|
|
|
|
|
|
|
import { RefreshCw } from 'lucide-react';
|
|
|
|
|
|
|
|
|
|
|
|
import { Registry } from '@/react/portainer/registries/types';
|
|
|
|
import { Registry } from '@/react/portainer/registries/types';
|
|
|
|
|
|
|
|
|
|
|
@ -75,17 +76,15 @@ export function PrivateRegistryFieldset({
|
|
|
|
{checked && (
|
|
|
|
{checked && (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
{method !== 'repository' && (
|
|
|
|
{method !== 'repository' && (
|
|
|
|
<>
|
|
|
|
|
|
|
|
<TextTip color="blue">
|
|
|
|
<TextTip color="blue">
|
|
|
|
If you make any changes to the image urls in your yaml, please
|
|
|
|
If you make any changes to the image urls in your yaml, please
|
|
|
|
reload or select registry manually
|
|
|
|
reload or select registry manually
|
|
|
|
</TextTip>
|
|
|
|
</TextTip>
|
|
|
|
|
|
|
|
|
|
|
|
<Button onClick={reload}>Reload</Button>
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
{!errorMessage ? (
|
|
|
|
{!errorMessage ? (
|
|
|
|
<FormControl label="Registry" inputId="users-selector">
|
|
|
|
<FormControl label="Registry" inputId="users-selector">
|
|
|
|
|
|
|
|
<div className="flex">
|
|
|
|
<Select
|
|
|
|
<Select
|
|
|
|
value={registries.filter(
|
|
|
|
value={registries.filter(
|
|
|
|
(registry) => registry.Id === selected
|
|
|
|
(registry) => registry.Id === selected
|
|
|
@ -94,7 +93,17 @@ export function PrivateRegistryFieldset({
|
|
|
|
getOptionLabel={(registry) => registry.Name}
|
|
|
|
getOptionLabel={(registry) => registry.Name}
|
|
|
|
getOptionValue={(registry) => registry.Id.toString()}
|
|
|
|
getOptionValue={(registry) => registry.Id.toString()}
|
|
|
|
onChange={(value) => onSelect(value?.Id)}
|
|
|
|
onChange={(value) => onSelect(value?.Id)}
|
|
|
|
|
|
|
|
className="w-full"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
{method !== 'repository' && (
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
onClick={reload}
|
|
|
|
|
|
|
|
title="Reload"
|
|
|
|
|
|
|
|
icon={RefreshCw}
|
|
|
|
|
|
|
|
color="light"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</FormControl>
|
|
|
|
</FormControl>
|
|
|
|
) : (
|
|
|
|
) : (
|
|
|
|
<FormError>{errorMessage}</FormError>
|
|
|
|
<FormError>{errorMessage}</FormError>
|
|
|
|