mirror of
https://github.com/portainer/portainer.git
synced 2025-08-01 20:05:23 +02:00
fix(app templates): load app template for deployment [BE-11382] (#141)
This commit is contained in:
parent
20e3d3a15b
commit
c0c7144539
23 changed files with 453 additions and 60 deletions
|
@ -16,10 +16,12 @@ export function TemplateFieldset({
|
|||
values,
|
||||
setValues,
|
||||
errors,
|
||||
isLoadingValues,
|
||||
}: {
|
||||
errors?: FormikErrors<Values>;
|
||||
values: Values;
|
||||
setValues: (values: SetStateAction<Values>) => void;
|
||||
isLoadingValues?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
|
@ -27,8 +29,9 @@ export function TemplateFieldset({
|
|||
error={errors?.templateId}
|
||||
value={values}
|
||||
onChange={handleChangeTemplate}
|
||||
isLoadingValues={isLoadingValues}
|
||||
/>
|
||||
{values.templateId && (
|
||||
{values.templateId && !isLoadingValues && (
|
||||
<>
|
||||
{values.type === 'custom' && (
|
||||
<CustomTemplateFieldset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue