Verified Commit 5009a5d0 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #262: lighter message blue, reversed order, less messages

parent fd5c1916
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
</template> </template>
<script> <script>
import _ from 'lodash'
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default {
...@@ -36,7 +35,7 @@ export default { ...@@ -36,7 +35,7 @@ export default {
let toDisplay = this.messages.filter(m => { let toDisplay = this.messages.filter(m => {
return now - m.date <= interval return now - m.date <= interval
}) })
return _.reverse(toDisplay).slice(0, 5) return toDisplay.slice(0, 3)
} }
}, },
methods: { methods: {
...@@ -54,7 +53,7 @@ export default { ...@@ -54,7 +53,7 @@ export default {
}, 1000) }, 1000)
}, },
getLevel (message) { getLevel (message) {
return message.level || 'blue' return message.level || 'info'
} }
}, },
watch: { watch: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment