Skip to content

Commit

Permalink
Merge pull request #49085 from hmrc/BAU-code-to-live-demo-b
Browse files Browse the repository at this point in the history
BAU Add feature flag for coloured block
  • Loading branch information
daveygit2050 authored Jun 20, 2024
2 parents ec58184 + de76e56 commit 0cbe334
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class AppConfig @Inject()(config: Configuration, servicesConfig: ServicesConfig)

val someConfigKey: String = config.getOptional[String]("some.config.key").getOrElse("")

val favColour: String = config.getOptional[String]("fav.colour").getOrElse("")

val base64StringWithQuotesStripped: String = config.getOptional[String]("base64.string.with.quotes.stripped").getOrElse("")

if (base64StringWithQuotesStripped == "") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ <h1 class="govuk-heading-xl">build-and-deploy-canary-service</h1>
<p class="govuk-body">requiredSystemProperty: @{appConfig.requiredSystemProperty}</p>
<p class="govuk-body">Force version bump</p>
<p class="govuk-body">Hello world<p>
@if(appConfig.favColour){
<div style="background-color: @{appConfig.favColour}; width: 100px; height: 100px; border: 5px black solid;"></div>
}

}

0 comments on commit 0cbe334

Please sign in to comment.