Bug 1509142 - Should not display the 'Reveal Secret' link when secret is without 'data' field#2448
Conversation
spadgett
left a comment
There was a problem hiding this comment.
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
| </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.
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