Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julien Veyssier
funkwhale
Commits
5009a5d0
Verified
Commit
5009a5d0
authored
Jun 10, 2018
by
Eliot Berriot
Browse files
See #262: lighter message blue, reversed order, less messages
parent
fd5c1916
Changes
1
Hide whitespace changes
Inline
Side-by-side
front/src/components/ServiceMessages.vue
View file @
5009a5d0
...
...
@@ -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
:
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment