mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Reset the dropdown selected value for the previous action.
This commit is contained in:
parent
a88a1d25c2
commit
b086f77e97
1 changed files with 3 additions and 1 deletions
|
|
@ -30,14 +30,16 @@
|
|||
vm.websocketMsgSrv = websocketMsgSrv;
|
||||
$scope.note = {};
|
||||
$scope.interpreterSettings = {};
|
||||
$scope.note.defaultInterpreter = null;
|
||||
|
||||
vm.createNote = function() {
|
||||
if (!vm.clone) {
|
||||
var defaultInterpreterId = '';
|
||||
if ($scope.note.defaultInterpreter !== undefined && $scope.note.defaultInterpreter !== '') {
|
||||
if ($scope.note.defaultInterpreter !== null) {
|
||||
defaultInterpreterId = $scope.note.defaultInterpreter.id;
|
||||
}
|
||||
vm.websocketMsgSrv.createNotebook($scope.note.notename, defaultInterpreterId);
|
||||
$scope.note.defaultInterpreter = null;
|
||||
} else {
|
||||
var noteId = $routeParams.noteId;
|
||||
vm.websocketMsgSrv.cloneNote(noteId, $scope.note.notename);
|
||||
|
|
|
|||
Loading…
Reference in a new issue