Skip to content

Commit

Permalink
DevTools: Add reload button to disconnection dialog
Browse files Browse the repository at this point in the history
BUG=627640

Review-Url: https://codereview.chromium.org/2148563003
Cr-Commit-Position: refs/heads/master@{#406669}
  • Loading branch information
paulirish authored and Commit bot committed Jul 20, 2016
1 parent b520ad6 commit d253713
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions front_end/main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,8 @@ WebInspector.RemoteDebuggingTerminatedScreen = function(reason)
message.createChild("span").textContent = WebInspector.UIString("Debugging connection was closed. Reason: ");
message.createChild("span", "reason").textContent = reason;
this.contentElement.createChild("div", "message").textContent = WebInspector.UIString("Reconnect when ready by reopening DevTools.");
var button = createTextButton(WebInspector.UIString("Reconnect DevTools"), () => window.location.reload());
this.contentElement.createChild("div", "button").appendChild(button);
}

/**
Expand Down
9 changes: 7 additions & 2 deletions front_end/main/remoteDebuggingTerminatedScreen.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@
*/

.widget {
padding: 25px;
padding: 20px;
}

.message {
.message, .button {
font-size: larger;
white-space: pre;
margin: 5px;
}

.button {
text-align: center;
margin-top: 10px;
}

.reason {
color: #8b0000;
}

0 comments on commit d253713

Please sign in to comment.