Feat/post tags
3 unresolved threads
3 unresolved threads
Merge request reports
Activity
84 parsedFilters = filters.map((filter) => { 85 return filter.slug; 86 }); 87 88 // remove 'a la une' filter 89 parsedFilters = parsedFilters.filter((item) => { 90 return item !== TagEnum.aLaUne; 91 }); 92 93 if (parsedFilters.length <= 0) { 94 parsedFilters = null; 95 } 96 } 97 98 // Reset posts 99 this.restPosts(); changed this line in version 2 of the diff
45 116 117 public getDisplayedTag(): string { 118 if (!this.isALaUneTag()) { 119 return this.selectedMainTagSlug; 120 } 121 return 'autres actualités'; 122 } 123 124 public isALaUneTag(): boolean { 125 if (!this.filters || this.filters[0].slug === TagEnum.aLaUne) { 126 return true; 127 } 128 return false; 129 } 130 131 public restPosts(): void { changed this line in version 2 of the diff
65 155 // Split news on two columns on desktop mode or one column in mobile mode. 66 156 private setNews(news: PostWithMeta): void { 67 157 this.pagination = news.meta.pagination; 68 const customIndex = this.postsMobileView.length; // For scroll loading, start with previous index. 158 const customIndex = 0; // this.postsMobileView.length; // For scroll loading, start with previous index. changed this line in version 2 of the diff
added 6 commits
-
aa29472d...6c9f686a - 4 commits from branch
dev
- d19171b7 - Merge remote-tracking branch 'origin/dev' into feat/post-tags
- 01e7ffdc - feat: update select design for news + clean code
-
aa29472d...6c9f686a - 4 commits from branch
mentioned in commit 61937733
Please register or sign in to reply