Skip to content
Snippets Groups Projects

Feat/post tags

Merged Hugo SUBTIL requested to merge feat/post-tags into dev
3 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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();
  • 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 {
  • 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.
  • Les filtres ne s'appliquent pas lorsqu'on est sur vue mobile ? Exemple : image Et maintenant en mobile : image

    Le problème vient de l'url mal formé. Quand j'enlève les "&&", il y a bien que 2 résultats. image

  • Il y avait bien un problème mais c'est pas lié a l'url. Comme tu as géré une liste différente pour le mobile il fallait la reset en même temps que les autres, chose qui n'était pas faite du coup!

  • Hugo SUBTIL added 1 commit

    added 1 commit

    Compare with previous version

  • Hugo SUBTIL added 6 commits

    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

    Compare with previous version

  • Hugo SUBTIL added 1 commit

    added 1 commit

    Compare with previous version

  • mentioned in commit 61937733

  • Please register or sign in to reply
    Loading