Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Solve #1030 Disable smartnotebook broadcast paragraph. (#1048)
Browse files Browse the repository at this point in the history
* Solve #1030 Disable smartnotebook broadcast paragraph.
  • Loading branch information
zhiqiang authored Sep 7, 2017
1 parent bb81a7f commit c398dd1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1247,14 +1247,7 @@ private void updateParagraph(NotebookSocket conn, HashSet<String> userAndRoles,
p.setReturn(new InterpreterResult(InterpreterResult.Code.ERROR, e.getMessage()), e);
p.setStatus(Status.ERROR);
}

if (note.isPersonalizedMode()) {
Map<String, Paragraph> userParagraphMap =
note.getParagraph(paragraphId).getUserParagraphMap();
broadcastParagraphs(userParagraphMap);
} else {
broadcastParagraph(note, p);
}
conn.send(serializeMessage(new Message(OP.PARAGRAPH).put("paragraph", p)));
}

private void cloneNote(NotebookSocket conn, HashSet<String> userAndRoles, Notebook notebook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* under the License.
*/
/* bolder text */
body {
margin: 0px !important;
}
.bold {
font-weight: 500;
}
Expand Down
2 changes: 1 addition & 1 deletion smart-zeppelin/zeppelin-web/src/app/notebook/notebook.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

.notebookContent {
height: 94%;
height: 93%;
}

.revision {
Expand Down
3 changes: 1 addition & 2 deletions smart-zeppelin/zeppelin-web/src/app/notebook/notebook.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div id="content" class="notebookContent" style="height: 100%;background-color: white;">
<div class="col-xs-4 box" style="height: 100%; overflow: hidden;">
<ul class="list-group" style="height: 100%; overflow-y: auto;">
<h4>Rule List</h4>
<div class="title">Rule List</div>
<li ng-repeat="rule in rules" class="list-group-item" style="border: 0px solid transparent">
{{rule.ruleText}}
</li>
Expand All @@ -38,5 +38,4 @@ <h4>Rule List</h4>
style="height: 100%; overflow-y: auto;">
</div>
</div>
<div style="clear:both;height:10px"></div>
</div>

0 comments on commit c398dd1

Please sign in to comment.