2023-04-10 15:36:59 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
2023-04-14 17:08:13 +00:00
|
|
|
~}}
|
2023-04-10 15:36:59 +00:00
|
|
|
|
2020-06-13 05:12:56 +00:00
|
|
|
<div class="boxed-section">
|
2021-03-26 13:55:12 +00:00
|
|
|
<div class="boxed-section-head" data-test-level-switcher-parent>
|
2020-06-13 05:12:56 +00:00
|
|
|
<PowerSelect
|
|
|
|
data-test-level-switcher
|
|
|
|
@tagName="div"
|
|
|
|
@triggerClass="is-compact pull-left"
|
2020-07-09 20:19:07 +00:00
|
|
|
@options={{this.levels}}
|
|
|
|
@selected={{this.level}}
|
2020-06-13 05:12:56 +00:00
|
|
|
@searchEnabled={{false}}
|
2020-07-09 20:19:07 +00:00
|
|
|
@onChange={{action this.setLevel}} as |level|>
|
2020-06-13 20:05:45 +00:00
|
|
|
<span class="ember-power-select-prefix">Level: </span>{{capitalize level}}
|
2020-06-13 05:12:56 +00:00
|
|
|
</PowerSelect>
|
2020-07-28 17:59:14 +00:00
|
|
|
<button data-test-toggle class="button is-white is-compact pull-right" {{action this.toggleStream}} type="button" title="{{if this.logger.isStreaming "Stop" "Start"}} log streaming">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{x-icon (if this.logger.isStreaming "media-pause" "media-play") class="is-text"}}
|
2020-06-13 05:12:56 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2020-06-15 07:10:36 +00:00
|
|
|
<div data-test-log-box class="boxed-section-body is-dark is-full-bleed">
|
2020-07-09 20:19:07 +00:00
|
|
|
<StreamingFile @logger={{this.logger}} @isStreaming={{this.isStreaming}} />
|
2020-06-13 05:12:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|