Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Marzal
funkwhale
Commits
8ff775a1
Verified
Commit
8ff775a1
authored
7 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Added tracks count and sort by modification date in front
parent
f917c5d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
front/src/components/playlists/PlaylistModal.vue
+6
-2
6 additions, 2 deletions
front/src/components/playlists/PlaylistModal.vue
with
6 additions
and
2 deletions
front/src/components/playlists/PlaylistModal.vue
+
6
−
2
View file @
8ff775a1
...
...
@@ -18,7 +18,8 @@
<div
class=
"content"
>
<div
class=
"header"
>
{{
playlist
.
name
}}
</div>
<div
class=
"meta"
>
<span
class=
"tracks"
>
45 tracks
</span>
<span
class=
"tracks"
><i
class=
"music icon"
></i>
{{
playlist
.
tracks_count
}}
tracks
</span>
<span
class=
"date"
><i
class=
"clock icon"
></i>
Last modification
{{
playlist
.
modification_date
|
ago
}}
</span>
</div>
<div
class=
"extra"
>
<div
class=
"ui basic green button"
@
click=
"addToPlaylist(playlist.id)"
>
...
...
@@ -34,6 +35,7 @@
</
template
>
<
script
>
import
_
from
'
lodash
'
import
axios
from
'
axios
'
import
{
mapState
}
from
'
vuex
'
...
...
@@ -80,7 +82,9 @@ export default {
playlists
:
state
=>
state
.
playlists
.
playlists
}),
sortedPlaylists
()
{
return
this
.
playlists
let
p
=
_
.
sortBy
(
this
.
playlists
,
[(
e
)
=>
{
return
e
.
modification_date
}])
p
.
reverse
()
return
p
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment