Skip to content
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

Merged
merged 6 commits into from Nov 12, 2018

Conversation

andresmgot
Copy link
Contributor

@andresmgot andresmgot commented Nov 8, 2018

Fixes #456

screenshot 2018-11-09 at 09 59 16

);
} else {
bindingSection = (
<h5 className="padding-b-big">
Copy link
Contributor

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."

Copy link
Contributor

@migmartri migmartri left a 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 = {
Copy link
Contributor

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?

@andresmgot
Copy link
Contributor Author

@prydonius PTAL, do you think the format is okay now?

@migmartri
Copy link
Contributor

@prydonius PTAL, do you think the format is okay now?

it looks good to me

Copy link
Contributor

@prydonius prydonius left a 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>;
Copy link
Contributor

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

@andresmgot andresmgot merged commit d19a26d into vmware-tanzu:master Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants