open-nomad/ui/app/templates/components/agent-monitor.hbs
2020-06-16 10:23:36 -07:00

21 lines
774 B
Handlebars

<div class="boxed-section">
<div class="boxed-section-head">
<PowerSelect
data-test-level-switcher
@tagName="div"
@triggerClass="is-compact pull-left"
@options={{levels}}
@selected={{level}}
@searchEnabled={{false}}
@onChange={{action setLevel}} as |level|>
<span class="ember-power-select-prefix">Level: </span>{{capitalize level}}
</PowerSelect>
<button data-test-toggle class="button is-white is-compact pull-right" {{action toggleStream}}>
{{x-icon (if logger.isStreaming "media-pause" "media-play") class="is-text"}}
</button>
</div>
<div data-test-log-box class="boxed-section-body is-dark is-full-bleed">
<StreamingFile @logger={{logger}} @isStreaming={{isStreaming}} />
</div>
</div>