feat: add refresh button to docker containers table (#913)
This commit is contained in:
@@ -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()) }))
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user