Skip to content

Commit

Permalink
fix: requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FrantisekMichalSebestyen committed Aug 10, 2023
1 parent d41110b commit ecb16dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions resources/js/components/catalog-new/ItemsFilterController.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ function formatAuthor(author) {
return author.split(', ').reverse().join(' ')
}
function formatAuthors(authors) {
return authors.filter(Boolean).map(formatAuthor).join(', ')
}
const PAGE_SIZE = 30
const AGGREGATIONS_SIZE = 1000
const SINGLE_ITEM_FILTERS = ['color', 'yearRange']
Expand Down Expand Up @@ -347,7 +343,6 @@ export default {
clearAllSelections: this.clearAllSelections,
clearFilterSelection: this.clearFilterSelection,
removeSelection: this.removeSelection,
formatAuthors,
formatAuthor,
})
},
Expand Down
4 changes: 2 additions & 2 deletions resources/views/frontend/catalog-new/index-new.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('content')
<section class="tailwind-rules">
<filter-new-items-controller locale="{{ app()->getLocale() }}"
v-slot="{ loadMore, hasFilterOptions, isFetchingArtworks, handleSelectRandomly, handleMultiSelectChange, selectedOptionsAsLabels, handleSortChange, handleColorChange, handleYearRangeChange, handleCheckboxChange, clearFilterSelection, clearAllSelections, removeSelection, query, page, aggregations, artworks, last_page, artworks_total, formatAuthor, formatAuthors }">
v-slot="{ loadMore, hasFilterOptions, isFetchingArtworks, handleSelectRandomly, handleMultiSelectChange, selectedOptionsAsLabels, handleSortChange, handleColorChange, handleYearRangeChange, handleCheckboxChange, clearFilterSelection, clearAllSelections, removeSelection, query, page, aggregations, artworks, last_page, artworks_total, formatAuthor }">
<div class="tw-relative">
<div class="tw-relative tw-min-h-[calc(100vh-14rem)]">
<div class="tw-bg-gray-200">
Expand Down Expand Up @@ -865,7 +865,7 @@ class="item tw-w-full tw-p-2 tw-pb-4 md:tw-w-[calc(33.3333%-1.375rem)] md:tw-p-0
<div class="tw-mt-6 tw-flex tw-gap-3">
<div class="tw-flex tw-grow tw-flex-col">
<a :href="$route('dielo', {id: artwork.id})"
class="tw-pb-1.5 tw-text-lg tw-font-light tw-italic">@{{ artwork.content.authors_formatted.reduce((acc, currentValue) => acc + ', ' + currentValue) }}</a>
class="tw-pb-1.5 tw-text-lg tw-font-light tw-italic">@{{ artwork.content.authors_formatted.join(', ') }}</a>
<a :href="$route('dielo', {id: artwork.id})"
class="tw-pb-2 tw-text-lg">@{{ artwork.content.title }}</a>
<a :href="$route('dielo', {id: artwork.id})"
Expand Down

0 comments on commit ecb16dd

Please sign in to comment.