open-vault/ui/app/templates/components/console/log-json.hbs
Arnav Palnitkar 1d26f056bc
Updated code mirror component for consistency (#11500)
* Updated code mirror component for consistency

- Hide gutters, line number and selection while read only
- Show toolbar with copy functionality for all instances

* Moved toolbar and actions to json editor component

* Updated form-field-from-model template

* Added test for toolbar
2021-05-06 09:59:15 -07:00

11 lines
332 B
Handlebars

<div class="console-ui-output has-copy-button">
<JsonEditor @showToolbar={{false}} @value={{stringify content}} @options={{hash
readOnly=true
lineNumbers=false
autoHeight=true
gutters=false
theme='hashi auto-height'
}} />
<HoverCopyButton @copyValue={{stringify content}} />
</div>