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
Hide binding details if the svc instance is not bindable #794
Conversation
aac552b
to
e9ff1e0
Compare
); | ||
} else { | ||
bindingSection = ( | ||
<h5 className="padding-b-big"> |
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.
I would keep the <h2>Bindings</h2>
heading, and then just add a paragraph with a message like "This Instance cannot be bound to applications."
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.
Thanks.
@@ -208,5 +230,32 @@ context("when all the components are loaded", () => { | |||
).toExist(); | |||
expect(wrapper).toMatchSnapshot(); | |||
}); | |||
|
|||
it("should not show bindings information if the class is not bindable", () => { | |||
const classes = { |
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.
Maybe you can share these classes
in the tests and only override the spec.bindable
value during mount?
@prydonius PTAL, do you think the format is okay now? |
it looks good to me |
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.
lgtm, thanks @andresmgot!
<BindingList bindingsWithSecrets={bindings} removeBinding={this.props.removeBinding} /> | ||
); | ||
} else { | ||
bindingSection = <p>This instance cannot be bound to applications</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.
let's add a full stop at the end of this sentence
Fixes #456