feat: add refresh button to docker containers table (#913)

This commit is contained in:
Meier Lukas
2024-08-04 21:19:31 +02:00
committed by GitHub
parent b8b084c188
commit b53a2b6b78
3 changed files with 51 additions and 3 deletions

View File

@@ -59,6 +59,10 @@ export const dockerRouter = createTRPCRouter({
timestamp,
};
}),
invalidate: permissionRequiredProcedure.requiresPermission("admin").mutation(async () => {
await dockerCache.invalidateAsync();
return;
}),
startAll: permissionRequiredProcedure
.requiresPermission("admin")
.input(z.object({ ids: z.array(z.string()) }))

View File

@@ -1656,6 +1656,19 @@ export default {
},
},
},
refresh: {
label: "Refresh",
notification: {
success: {
title: "Containers refreshed",
message: "You are now viewing the most recent data",
},
error: {
title: "Containers not refreshed",
message: "Something went wrong while refreshing the containers",
},
},
},
},
},
permission: {