1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(edge/stacks): fix ui issues [EE-5578] (#9070)

This commit is contained in:
Chaim Lev-Ari 2023-06-22 21:08:04 +07:00 committed by GitHub
parent 3d22cde096
commit 2cd5d55b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 56 additions and 35 deletions

View file

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