Skip to content

Commit

Permalink
SNRGY-2876: make smart-service script editor more usable
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoRoessner committed Oct 9, 2023
1 parent 7d1b8ee commit 23066f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

.edit-smart-service-task-dialog {
padding-bottom: 15px;
width: 100vw;
max-width: 100%;
}

.process-start-input-delete {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ export class EditSmartServiceTaskDialogComponent implements OnInit, AfterViewIni
editor.getSession().setMode('ace/mode/javascript');
editor.setOptions({
enableBasicAutocompletion: true,
enableLiveAutocompletion: true
enableLiveAutocompletion: true,
minLines: 20,
maxLines: Infinity
});
editor.setValue(this.getChunkedDataFromInputs(inputNamePrefix, this.result.inputs, ''));
} else {
Expand All @@ -313,7 +315,9 @@ export class EditSmartServiceTaskDialogComponent implements OnInit, AfterViewIni
editor.getSession().setMode('ace/mode/json');
editor.setOptions({
enableBasicAutocompletion: true,
enableLiveAutocompletion: true
enableLiveAutocompletion: true,
minLines: 20,
maxLines: Infinity
});
editor.setValue(this.getModuleDataFromInputs( this.result.inputs));
} else {
Expand Down

0 comments on commit 23066f0

Please sign in to comment.