mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(custom-templates): filter templates by edge [EE-6565] (#10979)
This commit is contained in:
parent
441a8bbbbf
commit
2826a4ce39
10 changed files with 229 additions and 21 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue