Skip to content

Commit

Permalink
#7442 fix Spark connection status in Lab (#7448)
Browse files Browse the repository at this point in the history
* #7442 fix Spark connection status in Lab

* #7442 add tooltip to disconnect button
  • Loading branch information
Mariusz Jurowicz authored and scottdraves committed May 30, 2018
1 parent d556f2e commit d5ad0d3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions js/notebook/src/shared/style/spark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@

@import "bxvariables";

.label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: bold;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}

.label-info {
background-color: $bxColorInfo;
}

.label-danger {
background-color: $bxColorError;
}

.label-default {
background-color: $bxColorDefault;
}

.bx-spark-stagePanel {
max-width: 600px;
margin: 8px 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ private Label createAppStatus() {
private Button createDisconnectButton() {
Button disconnect = new Button();
disconnect.registerOnClick((content, message) -> getSparkSession().sparkContext().stop());
disconnect.setTooltip("Stop Spark Session");
disconnect.setDomClasses(new ArrayList<>(Arrays.asList("bx-button", "icon-close")));
return disconnect;
}
Expand Down

0 comments on commit d5ad0d3

Please sign in to comment.