Skip to content

Commit

Permalink
Merge pull request #287 from dramich/all
Browse files Browse the repository at this point in the history
Add button to show all log lines
  • Loading branch information
bradrydzewski committed Aug 20, 2019
2 parents 424868c + 7e2b24d commit 1685473
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/views/Build.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@
<div class="output-content" ref="outputContent" @scroll="onOutputContentScroll">
<Loading v-if="logsShowState === 'loading'"/>

<div class="output-content-actions" v-if="moreCount">
<Button size="l" outline borderless class="output-button" @click.native="handleAll">
Show all lines
</Button>
</div>

<div class="output-content-actions" v-if="moreCount">
<Button size="l" outline borderless class="output-button" @click.native="handleMore">
Show {{Math.min(moreCount, logStep)}} lines more
Expand Down Expand Up @@ -337,6 +343,9 @@ export default {
handleMore: function() {
this.logLimit += this.logStep;
},
handleAll: function() {
this.logLimit = this.logs.length;
},
toggleOutputFullscreen() {
this.outputFullscreen = !this.outputFullscreen;
Expand Down

0 comments on commit 1685473

Please sign in to comment.