Improve referenced secret deletion message component

This commit is contained in:
carlosmonastyrski
2025-04-10 10:24:02 -03:00
parent b121ec891f
commit 8ee2b54182
7 changed files with 174 additions and 152 deletions
@@ -581,6 +581,7 @@ export const registerDashboardRouter = async (server: FastifyZodProvider) => {
folders: z
.object({
folderName: z.string(),
folderImported: z.boolean(),
secrets: z.array(z.string()).optional()
})
.array()
@@ -856,6 +857,7 @@ export const registerDashboardRouter = async (server: FastifyZodProvider) => {
actorAuthMethod: req.permission.authMethod,
actorOrgId: req.permission.orgId
});
if (secrets?.length || secretRotations?.length) {
const secretCount =
(secrets?.length ?? 0) +