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

DRILL-6243: Added alert box to confirm shutdown of drillbit after clicking shutdown button #1169

Closed
wants to merge 2 commits into from

Conversation

dvjyothsna
Copy link
Contributor

…cking shutdown button

@dvjyothsna dvjyothsna changed the title DRILL-6243: Added alert box to confirm shutdown of drillbit after cli… DRILL-6243: Added alert box to confirm shutdown of drillbit after clicking shutdown button Mar 15, 2018
@dvjyothsna
Copy link
Contributor Author

@sohami Please review

complete: function(data) {
alert(data.responseJSON["response"]);
button.prop('disabled',true).css('opacity',0.5);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

please fix indentation here and below. Also add the error: callback for Ajax request.
Like alert with received error ?

button.prop('disabled',true).css('opacity',0.5);
}
});
if (confirm("Click ok to shutdown")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Message should be more of like "Are you sure you want to shutdown Drillbit running on + location.host + node ?"

@sohami
Copy link
Contributor

sohami commented Mar 21, 2018

+1 LGTM. Thanks for making the changes.

vdiravka pushed a commit to vdiravka/drill that referenced this pull request Mar 24, 2018
@asfgit asfgit closed this in 3595664 Mar 26, 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

2 participants