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

Disable restart btn for suspended apps #774

Merged

Conversation

janisz
Copy link
Contributor

@janisz janisz commented Aug 2, 2016

No description provided.

@Poltergeist
Copy link
Contributor

Hi @janisz, I am currently looking into your PR. Thanks in advance for contributing to marathon-ui, again.

@@ -68,7 +68,7 @@ var AppPageControlsComponent = React.createClass({
onClick={this.handleScaleApp}>
Scale Application
</button>
<button className="btn btn-lg btn-default"
<button className={"btn btn-lg btn-default " + suspendAppClassSet}
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 prefer to have a specific class set for the restart button. Otherwise we may get unforeseen side effects if we ever change the suspendAppClassSet

This is what i mean:

var restartAppClassSet = classNames("btn btn-lg btn-default ", {
    "disabled": props.model.instances < 1
});

Otherwise I do like the idea. Thanks for this Pull Request. If you add this change I will make sure it gets merged into master asap.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@janisz janisz force-pushed the disable_restart_for_suspended_apps branch from 28a6821 to ec68dd7 Compare September 9, 2016 07:49
@orlandohohmeier
Copy link
Contributor

@janisz great job 💯 ✨ thanks a bunch!

@orlandohohmeier orlandohohmeier merged commit 0480353 into mesosphere:master Sep 21, 2016
@janisz janisz deleted the disable_restart_for_suspended_apps branch October 4, 2016 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants