From b77d49ec4f00405af44eedcd3bceb195219835b6 Mon Sep 17 00:00:00 2001 From: Armin Fauland Date: Tue, 4 Aug 2026 12:10:45 +0000 Subject: [PATCH] fix(ui): allow creating a secret once the list is no longer empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "create secret" button only existed inside the empty state: @if (!loading() && !error() && secrets().length === 0) { … Once a single secret exists the block never renders, and the secrets manager offers no other way to reach openCreateModal(). Creating a second secret through the UI becomes impossible — the only remaining routes are the deep link /(modal:secrets/create/) or the run dialog, which links there when a workflow references a missing secret. Adds the same button above the list so it is available in both states. Reuses the existing secrets.create_button translation key, so no i18n changes are needed. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01LixHBPkhb8h5oDdMqSG4se --- .../src/app/components/secrets-manager/secrets-manager.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/ui/src/app/components/secrets-manager/secrets-manager.html b/apps/ui/src/app/components/secrets-manager/secrets-manager.html index 99dcc52..dd94aac 100644 --- a/apps/ui/src/app/components/secrets-manager/secrets-manager.html +++ b/apps/ui/src/app/components/secrets-manager/secrets-manager.html @@ -35,6 +35,11 @@ @if (!loading() && secrets().length > 0) { +
+ + {{ 'secrets.create_button' | transloco }} + +