NTP-71663 | message from config for gmail scope error (#16538)
This commit is contained in:
@@ -495,6 +495,11 @@ data class ConfigMessage(
|
||||
@SerializedName("billDetailsRefreshedDescription")
|
||||
val billDetailsUpdatedDescription: String =
|
||||
"We have fetched the latest bill details from your biller. The amount or due date may have changed. Please review before proceeding.",
|
||||
@SerializedName("gmailScopeErrorTitle")
|
||||
val gmailScopeErrorTitle: String = "Something seems wrong",
|
||||
@SerializedName("gmailScopeErrorTitle")
|
||||
val gmailScopeErrorDescription: String =
|
||||
"Unfortunately we have encountered a technical issue. Please try again after some time.",
|
||||
)
|
||||
|
||||
data class CoinUtilisationConfig(
|
||||
|
||||
@@ -334,6 +334,7 @@ fun BottomSheetContentWithIconHeaderPrimarySecondaryButton(
|
||||
NaviText(
|
||||
text = header,
|
||||
fontSize = 16.sp,
|
||||
lineHeight = 24.sp,
|
||||
fontFamily = naviFontFamily,
|
||||
fontWeight = getFontWeight(FontWeightEnum.NAVI_BODY_DEMI_BOLD),
|
||||
color = NaviBbpsColor.textPrimary,
|
||||
@@ -344,6 +345,7 @@ fun BottomSheetContentWithIconHeaderPrimarySecondaryButton(
|
||||
NaviText(
|
||||
text = description,
|
||||
fontSize = 14.sp,
|
||||
lineHeight = 22.sp,
|
||||
fontFamily = naviFontFamily,
|
||||
fontWeight = getFontWeight(FontWeightEnum.NAVI_BODY_REGULAR),
|
||||
color = NaviBbpsColor.textTertiary,
|
||||
|
||||
@@ -121,12 +121,20 @@ constructor(
|
||||
permission == DetectedBillSource.EMAIL.name &&
|
||||
GMAIL_READ_ONLY_SCOPE !in (grantedEmailScopes.orEmpty())
|
||||
) {
|
||||
updateOpenBottomSheet(false)
|
||||
val errorConfig =
|
||||
naviBbpsBaseVM
|
||||
.getGenericErrorConfig()
|
||||
.copy(code = ERR_NO_READ_ONLY_GMAIL_SCOPE, tag = ERR_NO_READ_ONLY_GMAIL_SCOPE)
|
||||
.copy(
|
||||
code = ERR_NO_READ_ONLY_GMAIL_SCOPE,
|
||||
tag = ERR_NO_READ_ONLY_GMAIL_SCOPE,
|
||||
title = naviBbpsDefaultConfig.configMessage.gmailScopeErrorTitle,
|
||||
description = naviBbpsDefaultConfig.configMessage.gmailScopeErrorDescription,
|
||||
)
|
||||
naviBbpsBaseVM.notifyError(errorConfig)
|
||||
|
||||
delay(500)
|
||||
updateBottomSheetCancellable(false)
|
||||
updateOpenBottomSheet(false)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user