Skip to content

Commit

Permalink
Simplify link
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed May 3, 2024
1 parent b3793fd commit 1cc485e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ <h3 class="text-bold">{{ item.name }}</h3>
<a [routerLink]="" [class.disabled]="currentPage() <= 1" (click)="currentPage() <= 1 ? null : loadPage(currentPage() - 1, $event)">&lt;</a>

@for (page of pages(); track page) {
@if (page === currentPage()) {
<a [routerLink]="" class="active">{{page}}</a>
} @else {
<a [routerLink]="" (click)="loadPage(page, $event)">{{page}}</a>
}
<a [routerLink]="" (click)="loadPage(page, $event)" [class.active]="page === currentPage()">{{page}}</a>
}

<a [routerLink]="" [class.disabled]="!nextPageLinkEnabled()" (click)="nextPageLinkEnabled() ? loadPage(currentPage() + 1) : null">&gt;</a>
Expand Down

0 comments on commit 1cc485e

Please sign in to comment.