Skip to content

Commit

Permalink
#7326 improve spark connection status widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Jurowicz committed May 24, 2018
1 parent 8b282b5 commit 629af48
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions js/notebook/src/SparkUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ class SparkUIModel extends widgets.VBoxModel {
}

class SparkUIView extends widgets.VBoxView {
private connectionStatus: HTMLElement;

public render() {
super.render();

this.el.classList.add('bx-spark-status-panel');

this.processConnectionWidget();
this.updateLabels();
}

Expand Down Expand Up @@ -69,6 +75,14 @@ class SparkUIView extends widgets.VBoxView {
width: 'auto',
}).outerWidth();
}

private processConnectionWidget() {
this.children_views.update(this.model.get('children')).then((views) => {
views.forEach((view) => {
debugger;
});
});
}
}

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void applicationEnd() {
private HBox createStatusPanel() {
Label appStatus = createAppStatus();
Button disconnect = createDisconnectButton();
HBox statusPanel = new HBox(Arrays.asList(uiLink(), disconnect, appStatus));
HBox statusPanel = new HBox(Arrays.asList(uiLink(), appStatus, disconnect));
sparkUI.add(statusPanel);
return statusPanel;
}
Expand Down

0 comments on commit 629af48

Please sign in to comment.