Skip to content

Commit

Permalink
Standalone gallery: a crude fix for sub pages order
Browse files Browse the repository at this point in the history
I'm not sure why it's not in the correct order in the standalone gallery specifically... I'm doing some weird things here and rather than try to figure out what I was thinking, I just sorted the array.
  • Loading branch information
joonaspaakko committed Aug 20, 2023
1 parent 8980036 commit d4e4ca6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gallery/_components/gallery-navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default {
icon: 'fa-solid fa-chevron-down',
},
tag: 'div',
childItems: routeGroup,
childItems: _.orderBy(routeGroup, 'meta.order', 'asc'),
};
const groupName = routeGroup[0].meta.nestedGroup;
Expand Down
5 changes: 5 additions & 0 deletions src/gallery/_modules/gallery-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default {
meta: {
icon: 'fa-solid fa-indent',
nestedGroup: 'subPages',
order: 0,
},
component: aleLibraryView,
children: [
Expand All @@ -66,6 +67,7 @@ export default {
meta: {
icon: 'fa-solid fa-list-ol',
nestedGroup: 'subPages',
order: 1,
},
children: [
{ name: "all-series", path: "", component: aleSeries, meta: { subPage: true, title: 'Series' } },
Expand All @@ -78,6 +80,7 @@ export default {
meta: {
icon: 'fa-solid fa-user-group',
nestedGroup: 'subPages',
order: 2,
},
children: [
{ name: "authors", path: "", component: aleAuthors, meta: { subPage: true, title: 'Authors' } },
Expand All @@ -90,6 +93,7 @@ export default {
meta: {
icon: 'fa-solid fa-users',
nestedGroup: 'subPages',
order: 3,
},
children: [
{ name: "narrators", path: "", component: aleNarrators, meta: { subPage: true, title: 'Narrators' } },
Expand All @@ -102,6 +106,7 @@ export default {
meta: {
icon: 'fa-solid fa-book',
nestedGroup: 'subPages',
order: 4,
},
children: [
{ name: "publishers", path: "", component: alePublishers, meta: { subPage: true, title: 'Publishers' } },
Expand Down

0 comments on commit d4e4ca6

Please sign in to comment.