change payload key name for interpreter syntax property

This commit is contained in:
CloverHearts 2016-09-29 14:14:03 +09:00
parent de03a06006
commit ff43ce37a8
3 changed files with 5 additions and 5 deletions

View file

@ -1595,11 +1595,11 @@ public class NotebookServer extends WebSocketServlet implements
private void getEditorSetting(NotebookSocket conn, Message fromMessage)
throws IOException {
String orderId = (String) fromMessage.get("orderId");
String paragraphId = (String) fromMessage.get("paragraphId");
String replName = (String) fromMessage.get("magic");
String noteId = getOpenNoteId(conn);
Message resp = new Message(OP.EDITOR_SETTING);
resp.put("orderId", orderId);
resp.put("paragraphId", paragraphId);
resp.put("editor", notebook().getInterpreterFactory().getEditorSetting(noteId, replName));
conn.send(serializeMessage(resp));
return;

View file

@ -708,7 +708,7 @@ angular.module('zeppelinWebApp').controller('ParagraphCtrl', function($scope, $r
websocketMsgSrv.getEditorSetting($scope.paragraph.id, interpreterName);
$timeout(
$scope.$on('editorSetting', function(event, data) {
if ($scope.paragraph.id === data.orderId) {
if ($scope.paragraph.id === data.paragraphId) {
deferred.resolve(data);
}
}

View file

@ -180,11 +180,11 @@ angular.module('zeppelinWebApp').service('websocketMsgSrv', function($rootScope,
});
},
getEditorSetting: function(orderId, replName) {
getEditorSetting: function(paragraphId, replName) {
websocketEvents.sendNewEvent({
op: 'EDITOR_SETTING',
data: {
orderId: orderId,
paragraphId: paragraphId,
magic: replName
}
});