From 9403e850e18cdd039956f154deea914ceea31665 Mon Sep 17 00:00:00 2001 From: Christopher Koch Date: Wed, 18 Apr 2018 17:04:05 -0400 Subject: [PATCH] d --- src/app/game-grid/game-grid.component.html | 20 ------------------ src/app/game-grid/game-grid.component.ts | 24 ---------------------- src/app/games.service.ts | 2 -- 3 files changed, 46 deletions(-) diff --git a/src/app/game-grid/game-grid.component.html b/src/app/game-grid/game-grid.component.html index 16b1af8..7fc57cb 100644 --- a/src/app/game-grid/game-grid.component.html +++ b/src/app/game-grid/game-grid.component.html @@ -26,26 +26,6 @@ -<<<<<<< HEAD -======= -
-
-
    -
  • 1
  • -
-
-
- - -
-
- -
-
- -
-
->>>>>>> abfe4ee830cfae95721bac32b34103b2538680eb
diff --git a/src/app/game-grid/game-grid.component.ts b/src/app/game-grid/game-grid.component.ts index 6fe8da8..c26411c 100644 --- a/src/app/game-grid/game-grid.component.ts +++ b/src/app/game-grid/game-grid.component.ts @@ -22,16 +22,10 @@ export class GameGridComponent implements OnInit { queryFilters = ""; querryPage = 1; queryOrder = "Title"; -<<<<<<< HEAD length = 100; pageSize = 10; pageSizeOptions = [5, 10, 25, 50, 100]; -======= - queryRecordMax = 9; - queryMaxPages = 0; - index = 0; ->>>>>>> abfe4ee830cfae95721bac32b34103b2538680eb constructor( @@ -51,24 +45,6 @@ export class GameGridComponent implements OnInit { this.gameListSubscription = this.gamesService.getGames( this.queryFilters, this.querryPage, this.queryOrder, this.pageSize ).subscribe( data => { this.length = data["_results"]; this.gamesData = data.games; -<<<<<<< HEAD -======= - - this.queryMaxPages = Math.round( data._results / this.queryRecordMax ); - console.log( this.queryMaxPages ); - - if( this.gamesData.length < this.queryRecordMax ){ - this.showNext = false; - }else{ - this.showNext = true; - } - if( this.querryPage != 1 ){ - this.showBack = true; - }else{ - this.showBack = false; - } - ->>>>>>> abfe4ee830cfae95721bac32b34103b2538680eb }); } diff --git a/src/app/games.service.ts b/src/app/games.service.ts index 879f266..0bd85e0 100644 --- a/src/app/games.service.ts +++ b/src/app/games.service.ts @@ -38,8 +38,6 @@ export class GamesService { getGames( queryFilters, querryPage, queryOrder, queryRecordMax ): Observable { return this.http.get( this.APIURL + "/games?filter="+ queryFilters +"&page="+ querryPage + "," + queryRecordMax +"&order="+ queryOrder +"&transform=1" ) .map(res => { - console.log( res ); - return( res );