Skip to content

Commit

Permalink
fix: hide info box when all required fields are filled (#265)
Browse files Browse the repository at this point in the history
When a file was chosen instead of a text value, the info box was not hidden.

Co-authored-by: Jan <55805868+Jaydee94@users.noreply.github.com>
  • Loading branch information
FSchumacher and Jaydee94 authored Nov 18, 2024
1 parent 0b8fde8 commit 58e05f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/components/Secrets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ const isEncryptButtonEnabled = computed(() => {
return (
secretName.value &&
namespaceName.value &&
secrets.value.every(secret => secret.key && (secret.value || secret.file.length))
secrets.value.every(secret => secret.key && (
secret.value || secret.file instanceof Blob || secret.file instanceof File
))
);
});
Expand Down

0 comments on commit 58e05f2

Please sign in to comment.