Skip to content

Commit

Permalink
feat(add-job): add jsoneditor code and text modes
Browse files Browse the repository at this point in the history
  • Loading branch information
roark authored and Eli Skeggs committed Aug 5, 2020
1 parent 744120b commit 5f7d2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/views/dashboard/templates/queueDetails.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="panel-body">
<div class="jsoneditorx form-group hide overflow-hidden">
<div class="jsoneditorx hide" id="jsoneditor" style="height:200px;"></div>
<div class="jsoneditorx hide" id="jsoneditor" style="height:300px;"></div>
<br />
<div class="js-add-job btn btn-primary btn-sm pull-right">Create</div>
</div>
Expand Down Expand Up @@ -51,7 +51,7 @@
{{/contentFor}}

{{#contentFor 'script'}}
window.jsonEditor = new JSONEditor(document.getElementById('jsoneditor'), {});
window.jsonEditor = new JSONEditor(document.getElementById('jsoneditor'), { modes: ['code','tree','text'] });
window.arenaInitialPayload = {
queueHost: "{{ queueHost }}",
queueName: "{{ queueName }}"
Expand Down

0 comments on commit 5f7d2a5

Please sign in to comment.