-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1509142 - Should not display the 'Reveal Secret' link when secret is without 'data' field #2448
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should disable the "Add to Application" button if there is not data.
Can you check "Environment From" when you pick the secret? I suspect the view details dialog has the same problem.
app/views/browse/secret.html
Outdated
@@ -90,6 +90,9 @@ <h2 class="mar-top-none"> | |||
</div> | |||
</div> | |||
</dl> | |||
<p ng-if="!secret.data" class="mar-bottom-xl"> | |||
There are no data in this secret. | |||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is grammatically correct, but reads a little funny to me. Maybe use an empty state message?
<div ng-if="!secret.data" class="empty-state-message text-center">
<h2>No data.</h2>
<p>This secret has no data.</p>
</div>
@spadgett so you are right regarding the secret without data field in the Do we want to disable the value input in that case, or just set the placeholder to just say something like "No key" ? |
As long as it's not broken, we might just leave it for 3.7 and come back to it in 3.8. cc @jwforres |
yeah if its not throwing a JS error i wouldnt touch that code in 3.7 |
/kind bug |
…s without 'data' field
/hold |
@spadgett disabling the btn when no |
/lgtm |
Automatic merge from submit-queue. |
@spadgett PTAL