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

feat(custom-templates): filter templates by edge [EE-6565] (#10979)

This commit is contained in:
Chaim Lev-Ari 2024-01-28 15:54:34 +02:00 committed by GitHub
parent 441a8bbbbf
commit 2826a4ce39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 229 additions and 21 deletions

View file

@ -36,8 +36,9 @@ export function TemplateFieldset({
}, [initialValues, values.template?.Id]);
const templatesQuery = useCustomTemplates({
select: (templates) =>
templates.filter((template) => template.EdgeTemplate),
params: {
edge: true,
},
});
return (
@ -111,8 +112,9 @@ function TemplateSelector({
error?: string;
}) {
const templatesQuery = useCustomTemplates({
select: (templates) =>
templates.filter((template) => template.EdgeTemplate),
params: {
edge: true,
},
});
if (!templatesQuery.data) {