diff --git a/frontend/src/components/resources/procedure/config.tsx b/frontend/src/components/resources/procedure/config.tsx index 5eea7ab1c..610905c11 100644 --- a/frontend/src/components/resources/procedure/config.tsx +++ b/frontend/src/components/resources/procedure/config.tsx @@ -1028,6 +1028,28 @@ const TARGET_COMPONENTS: ExecutionConfigs = { /> ), }, + PruneDockerBuilders: { + params: { server: "" }, + Component: ({ params, setParams, disabled }) => ( + setParams({ server })} + disabled={disabled} + /> + ), + }, + PruneBuildx: { + params: { server: "" }, + Component: ({ params, setParams, disabled }) => ( + setParams({ server })} + disabled={disabled} + /> + ), + }, PruneSystem: { params: { server: "" }, Component: ({ params, setParams, disabled }) => ( diff --git a/frontend/src/components/resources/server/actions.tsx b/frontend/src/components/resources/server/actions.tsx index b2941367f..9dc36c38c 100644 --- a/frontend/src/components/resources/server/actions.tsx +++ b/frontend/src/components/resources/server/actions.tsx @@ -49,7 +49,7 @@ export const Prune = ({ type, }: { server_id: string; - type: "Containers" | "Networks" | "Images" | "Volumes" | "System"; + type: "Containers" | "Networks" | "Images" | "Volumes" | "Buildx" | "System"; }) => { const server = useServer(server_id); const { mutate, isPending } = useExecute(`Prune${type}`); @@ -78,13 +78,15 @@ export const Prune = ({ ? "pruning_networks" : type === "Volumes" ? "pruning_volumes" + : type === "Buildx" + ? "pruning_buildx" : type === "System" ? "pruning_system" : ""; const pending = isPending || action_state?.[pruningKey]; - if (type === "Images" || type === "Networks") { + if (type === "Images" || type === "Networks" || type === "Buildx") { return ( , PruneSystem: ({ id }) => , },