Back to Frontend

JsFallback.Scala

identity/app/views/consentJourneyFragments/jsFallback.scala.html

latest643 B
Original Source

@import common.LinkTo @( verifiedReturnUrl: String, idRequest: services.IdentityRequest, idUrlBuilder: services.IdentityUrlBuilder )(implicit request: RequestHeader, messages: play.api.i18n.Messages, context: model.ApplicationContext) @forceSubmitFallback = { Try again } @spinnerError(id: String, text: Html, cta: Option[Html] = None, async: Boolean = false) = {

@text

@cta

@if(async) { } } @spinnerError( "identityConsentsLoadingError", Html("Loading seems to be taking a while. If you are in a hurry you can skip this and edit your consents later from your email preferences."), Some(forceSubmitFallback), true )