Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
partido-interdimensional-pirata
lumi
la web de miniloom
Commits
765cf0ac
Commit
765cf0ac
authored
Aug 20, 2020
by
rene
Browse files
ordenar barcas por fecha de creación en Barcas
parent
51367e70
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/views/Barca.vue
View file @
765cf0ac
...
...
@@ -105,7 +105,7 @@ export default {
consensos
(
state
)
{
return
state
.
consensos
.
filter
(
consenso
=>
consenso
.
barca_id
==
this
.
barcaId
)
.
sort
((
a
,
b
)
=>
new
Date
(
b
.
cre
ated_at
)
>
new
Date
(
a
.
cre
ated_at
))
.
sort
((
a
,
b
)
=>
new
Date
(
b
.
upd
ated_at
)
-
new
Date
(
a
.
upd
ated_at
))
},
}),
consensosNuevos
()
{
...
...
src/views/Barcas.vue
View file @
765cf0ac
...
...
@@ -87,9 +87,11 @@ export default {
barcasFiltradas
()
{
return
(
this
.
barcas
.
length
>
0
&&
this
.
barcas
.
filter
(({
abordada
})
=>
this
.
filtro
===
Filtros
.
ABORDADAS
?
abordada
:
!
abordada
,
)
this
.
barcas
.
filter
(({
abordada
})
=>
this
.
filtro
===
Filtros
.
ABORDADAS
?
abordada
:
!
abordada
,
)
.
sort
((
a
,
b
)
=>
new
Date
(
a
.
created_at
)
-
new
Date
(
b
.
created_at
))
)
},
filtro
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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