Skip to content

Commit e1c90c8

Browse files
committed
Tweaks to output page
1 parent b574712 commit e1c90c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

public/output.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@
3434
logs: []
3535
},
3636
methods: {
37+
clear: function() {
38+
this.logs = [];
39+
}
3740
},
3841
computed: {
42+
reverse: function() {
43+
return this.logs.reverse()
44+
}
3945
},
4046
sockets:{
4147
output: function(log) {
@@ -54,9 +60,9 @@
5460

5561
<div class="container" id="app">
5662

57-
<h1>Logging Output</h1>
63+
<h1>Logging Output<span class="pull-right"><a class="btn btn-lg btn-info" v-on:click="clear">Clear</a></span></h1>
5864

59-
<div class="row" v-for="log in logs" track-by="$index">
65+
<div class="row" v-for="log in reverse" track-by="$index">
6066

6167
<pre>
6268
{{ log }}

0 commit comments

Comments
 (0)