mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:26:51 +00:00
bugfix/Web UI Props caching does not work
This commit is contained in:
parent
193354ba54
commit
8d664b5492
@ -349,7 +349,6 @@ class WebUI extends MdcLoggable{
|
||||
|
||||
|
||||
def apiDocumentation: CssSel = {
|
||||
val title = "Sandbox Introduction"
|
||||
val propsValue = getWebUiPropsValue("webui_sandbox_introduction", "")
|
||||
val htmlDescription = if (APIUtil.glossaryDocsRequireRole){
|
||||
val userId = AuthUser.getCurrentResourceUserUserId
|
||||
|
||||
@ -37,7 +37,7 @@ object MappedWebUiPropsProvider extends WebUiPropsProvider {
|
||||
// 2) Get requested + language if any
|
||||
// 3) Get requested if any
|
||||
// 4) Get default value
|
||||
override def getWebUiPropsValue(requestedPropertyName: String, defaultValue: String): String = saveConnectorMetric {
|
||||
override def getWebUiPropsValue(requestedPropertyName: String, defaultValue: String, language: String = I18NUtil.currentLocale().toString()): String = saveConnectorMetric {
|
||||
import scala.concurrent.duration._
|
||||
var cacheKey = (randomUUID().toString, randomUUID().toString, randomUUID().toString)
|
||||
CacheKeyFromArguments.buildCacheKey {
|
||||
@ -49,7 +49,6 @@ object MappedWebUiPropsProvider extends WebUiPropsProvider {
|
||||
}
|
||||
|
||||
// In case there is a translation we must use it
|
||||
val language = I18NUtil.currentLocale().toString()
|
||||
val webUiPropsPropertyName = s"${brandSpecificPropertyName}_${language}"
|
||||
val translatedAndOrBrandPropertyName = WebUiProps.find(By(WebUiProps.Name, webUiPropsPropertyName)).isDefined match {
|
||||
case true => webUiPropsPropertyName
|
||||
|
||||
@ -23,7 +23,7 @@ trait WebUiPropsProvider {
|
||||
|
||||
def delete(webUiPropsId: String):Box[Boolean]
|
||||
|
||||
def getWebUiPropsValue(nameOfProperty: String, defaultValue: String): String
|
||||
def getWebUiPropsValue(nameOfProperty: String, defaultValue: String, language: String): String
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user