From 76d96c254453a247414215bb045b27b98ca64d59 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Mon, 12 Oct 2026 16:40:47 +0330 Subject: [PATCH] feat(profile): temporarily disable gateway charge for discount wallet - Added an alert to inform users that the gateway charge for the discount wallet is currently disabled. - Updated the Wallet.razor file to hide the charge button for the discount wallet, with a note for future restoration. These changes enhance user experience by providing clear communication regarding the status of the wallet charging feature. --- .gitignore | 2 +- .../Pages/Profile/ChargeDiscountWallet.razor | 11 +++++++++++ src/FrontOffice.Main/Pages/Profile/Wallet.razor | 6 ++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index bf1fd69..fd37e49 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ ## ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore -# User-specific files +# User-specific files *.rsuser *.suo *.user diff --git a/src/FrontOffice.Main/Pages/Profile/ChargeDiscountWallet.razor b/src/FrontOffice.Main/Pages/Profile/ChargeDiscountWallet.razor index d523c8e..776e859 100644 --- a/src/FrontOffice.Main/Pages/Profile/ChargeDiscountWallet.razor +++ b/src/FrontOffice.Main/Pages/Profile/ChargeDiscountWallet.razor @@ -7,6 +7,16 @@ + @* Gateway self-charge temporarily disabled. To restore: remove the alert and set _gatewayChargeEnabled = true in .cs (or flip the if below). *@ + + شارژ کیف‌پول اعتباری از طریق درگاه فعلاً غیرفعال است. + + بازگشت به کیف پول + + + + @if (false) @* TEMP: set to true to restore gateway charge UI *@ + { @* ─── نتیجه پرداخت (اگه از callback برگشته) ─── *@ @if (_paymentResult != null) { @@ -117,5 +127,6 @@ + } diff --git a/src/FrontOffice.Main/Pages/Profile/Wallet.razor b/src/FrontOffice.Main/Pages/Profile/Wallet.razor index 5da6575..308320a 100644 --- a/src/FrontOffice.Main/Pages/Profile/Wallet.razor +++ b/src/FrontOffice.Main/Pages/Profile/Wallet.razor @@ -125,9 +125,10 @@ } + @* ── Temporarily hidden: discount-wallet gateway charge (restore when needed) - شارژ کیف‌پول اعتباری + ── *@ تراکنش‌ها و مسیرهای شارژ