Skip to content

Commit

Permalink
Solved conflict between two paginations in favorite.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisLeandro94 committed Jun 19, 2021
1 parent 4936cd5 commit 90de474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ <h6 class="modal-title">Search Error</h6>
aria-label="pagination"
class="pagination"
[ngClass]="{ hidden: dataStore.Images.length == 0 }"
*ngIf="router.url != '/favorites'"
>
<ul class="pagination">
<li class="page-item" [ngClass]="{ disabled: dataStore.Page == 1 }">
Expand Down
2 changes: 1 addition & 1 deletion src/app/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class NavbarComponent implements OnInit {
constructor(
public dataStore: DatastoreService,
private modalService: NgbModal,
private router: Router,
public router: Router,
private imageService: ImageService
) {}

Expand Down

0 comments on commit 90de474

Please sign in to comment.