From e25b3b56375e3dbbc4a1fa2d470debe8b7a6c117 Mon Sep 17 00:00:00 2001 From: CloverHearts Date: Mon, 30 Nov 2015 17:26:56 +0900 Subject: [PATCH] Shortcuts execution bugs. If you use the Shift + Enter keys to execute the Paragraph, If you continue to run while Paragraph enter the Shift + Enter key, Paragraph enter that this is done constantly being requested RUNNING state. Case) Pragraph details - Scala) Thread.sleep (1000); Key press running SHIFT + Enter * 10 --- .../src/app/notebook/paragraph/paragraph.controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js index 18a47a52bab..c0838c5cfa3 100644 --- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js +++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js @@ -587,7 +587,10 @@ angular.module('zeppelinWebApp') exec: function(editor) { var editorValue = editor.getValue(); if (editorValue) { - $scope.runParagraph(editorValue); + if (!($scope.paragraph.status === 'RUNNING' || $scope.paragraph.status === 'PENDING')) + { + $scope.runParagraph(editorValue); + } } }, readOnly: false