Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
0x43
eBookHub-frontend
Commits
47869d6f
Commit
47869d6f
authored
Apr 25, 2019
by
Mycha de Vrees
Browse files
add genres to book list
parent
bbf5ccef
Pipeline
#373
passed with stage
in 1 minute and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pages/Books/BooksList.vue
View file @
47869d6f
...
...
@@ -88,6 +88,7 @@ export default {
{
key
:
'
title
'
,
label
:
'
Title
'
,
sortable
:
true
},
{
key
:
'
language
'
,
label
:
'
Language
'
,
sortable
:
true
},
{
key
:
'
authors
'
,
label
:
'
Authors
'
,
sortable
:
true
},
{
key
:
'
genres
'
,
label
:
'
Genres
'
,
sortable
:
true
},
{
key
:
'
serie
'
,
label
:
'
Serie
'
,
sortable
:
true
}
],
bookItems
:
[],
...
...
src/utils/TransformerUtils.js
View file @
47869d6f
...
...
@@ -3,7 +3,8 @@ export default {
const
types
=
{
authors
:
'
author
'
,
books
:
'
book
'
,
serie
:
'
book_serie
'
serie
:
'
book_serie
'
,
genres
:
'
genre
'
}
return
types
[
key
]
},
...
...
@@ -11,7 +12,8 @@ export default {
const
types
=
{
authors
:
true
,
books
:
true
,
serie
:
false
serie
:
false
,
genres
:
true
}
return
types
[
key
]
}
...
...
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