2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.noConnection}}
|
2018-02-27 21:38:31 +00:00
|
|
|
<div data-test-connection-error class="notification is-error">
|
2020-04-28 06:47:55 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h3 class="title is-4">Cannot fetch logs</h3>
|
|
|
|
<p>The logs for this task are inaccessible. Check the condition of the node the allocation is on.</p>
|
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2020-07-09 20:19:07 +00:00
|
|
|
<button data-test-connection-error-dismiss class="button is-danger" onclick={{action (mut this.noConnection) false}} type="button">Okay</button>
|
2020-04-28 06:47:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-27 21:38:31 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2017-11-15 17:13:17 +00:00
|
|
|
<div class="boxed-section-head">
|
2017-11-15 20:44:32 +00:00
|
|
|
<span>
|
2020-07-09 20:19:07 +00:00
|
|
|
<button data-test-log-action="stdout" class="button {{if (eq this.mode "stdout") "is-info"}}" {{action "setMode" "stdout"}} type="button">stdout</button>
|
|
|
|
<button data-test-log-action="stderr" class="button {{if (eq this.mode "stderr") "is-danger"}}" {{action "setMode" "stderr"}} type="button">stderr</button>
|
2017-11-15 20:44:32 +00:00
|
|
|
</span>
|
2017-11-15 17:13:17 +00:00
|
|
|
<span class="pull-right">
|
2020-07-09 17:30:11 +00:00
|
|
|
<button data-test-log-action="head" class="button is-white" onclick={{action "gotoHead"}} type="button">Head</button>
|
|
|
|
<button data-test-log-action="tail" class="button is-white" onclick={{action "gotoTail"}} type="button">Tail</button>
|
2020-07-28 17:59:14 +00:00
|
|
|
<button data-test-log-action="toggle-stream" class="button is-white" onclick={{action "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"}}
|
2017-11-15 17:13:17 +00:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2018-01-08 21:08:14 +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}} @mode={{this.streamMode}} @isStreaming={{this.isStreaming}} />
|
2017-11-15 17:13:17 +00:00
|
|
|
</div>
|