mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 20:29:32 +02:00
See #262: lighter message blue, reversed order, less messages
This commit is contained in:
parent
fd5c19163b
commit
5009a5d0cc
1 changed files with 2 additions and 3 deletions
|
@ -7,7 +7,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import _ from 'lodash'
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
|
@ -36,7 +35,7 @@ export default {
|
|||
let toDisplay = this.messages.filter(m => {
|
||||
return now - m.date <= interval
|
||||
})
|
||||
return _.reverse(toDisplay).slice(0, 5)
|
||||
return toDisplay.slice(0, 3)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -54,7 +53,7 @@ export default {
|
|||
}, 1000)
|
||||
},
|
||||
getLevel (message) {
|
||||
return message.level || 'blue'
|
||||
return message.level || 'info'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue