diff --git a/sport/app/football/controllers/MatchListController.scala b/sport/app/football/controllers/MatchListController.scala index a4e1eeb76f5..18c890ac456 100644 --- a/sport/app/football/controllers/MatchListController.scala +++ b/sport/app/football/controllers/MatchListController.scala @@ -35,6 +35,7 @@ trait MatchListController extends BaseController with Requests { pageTitle = matchesList.getPageTitle(Edition(request)), pageType = matchesList.pageType, matchesList = DotcomRenderingFootballDataModel.getMatchesList(matchesList.matchesGroupedByDateAndCompetition), + nextPage = matchesList.nextPage, ) JsonComponent.fromWritable(model) diff --git a/sport/app/football/model/DotcomRenderingFootballDataModel.scala b/sport/app/football/model/DotcomRenderingFootballDataModel.scala index 02dcd1f47a6..eb89738bd5a 100644 --- a/sport/app/football/model/DotcomRenderingFootballDataModel.scala +++ b/sport/app/football/model/DotcomRenderingFootballDataModel.scala @@ -1,7 +1,7 @@ package football.model -import model.{Competition, CompetitionSummary} import model.dotcomrendering.DotcomRenderingUtils.withoutNull +import model.{Competition, CompetitionSummary} import pa.{ Fixture, FootballMatch, @@ -18,7 +18,7 @@ import pa.{ Venue, Competition => PaCompetition, } -import play.api.libs.json.{JsObject, JsString, JsValue, Json, Writes} +import play.api.libs.json._ import java.time.LocalDate import java.time.format.DateTimeFormatter @@ -30,6 +30,7 @@ case class DotcomRenderingFootballDataModel( pageTitle: String, pageType: String, matchesList: Seq[MatchesByDateAndCompetition], + nextPage: Option[String], ) object DotcomRenderingFootballDataModel {