Skip to content

Commit 63ca0c8

Browse files
authored
feat(add-job): add jsoneditor code and text modes (#217)
1 parent 9008b50 commit 63ca0c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/views/dashboard/templates/queueDetails.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</div>
1010
<div class="panel-body">
1111
<div class="jsoneditorx form-group hide overflow-hidden">
12-
<div class="jsoneditorx hide" id="jsoneditor" style="height:200px;"></div>
12+
<div class="jsoneditorx hide" id="jsoneditor" style="height:300px;"></div>
1313
<br />
1414
<div class="js-add-job btn btn-primary btn-sm pull-right">Create</div>
1515
</div>
@@ -51,7 +51,7 @@
5151
{{/contentFor}}
5252

5353
{{#contentFor 'script'}}
54-
window.jsonEditor = new JSONEditor(document.getElementById('jsoneditor'), {});
54+
window.jsonEditor = new JSONEditor(document.getElementById('jsoneditor'), { modes: ['code','tree','text'] });
5555
window.arenaInitialPayload = {
5656
queueHost: "{{ queueHost }}",
5757
queueName: "{{ queueName }}"

0 commit comments

Comments
 (0)