Add buttons for switching JSON preview style

This commit is contained in:
2018-01-06 12:53:14 +00:00
parent 3c9bf3f322
commit a832f5614c
5 changed files with 77 additions and 4 deletions

View File

@@ -1,6 +1,12 @@
<header>
{{breadcrumb-nav currentDirPath=currentDirPath}}
<nav class="actions">
{{#if documentIsJSON}}
<div class="button-group json-view">
<button disabled={{jsonShowTree}} class="{{if jsonShowTree "active"}}" {{action "showJsonTree"}}>tree view</button>
<button disabled={{jsonShowSource}} class="{{if jsonShowSource "active"}}" {{action "showJsonSource"}}>source</button>
</div>
{{/if}}
<button class="delete" {{action "deleteItem"}}>delete</button>
</nav>
</header>