temp: disable gateway payment buttons - show 'بزودی' until gateway is activated
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
- MagicWallet.razor: disable charge button - ChargeDiscountWallet.razor: disable charge button - Profile/Index.razor: disable IPG package purchase button for all cycles
This commit is contained in:
@@ -78,22 +78,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
<MudButton Variant="Variant.Filled"
|
<MudButton Variant="Variant.Filled"
|
||||||
Color="Color.Primary"
|
Color="Color.Default"
|
||||||
Size="Size.Large"
|
Size="Size.Large"
|
||||||
FullWidth="true"
|
FullWidth="true"
|
||||||
Disabled="@(_chargeAmount <= 0 || _isProcessing)"
|
Disabled="true"
|
||||||
OnClick="StartDiscountCharge"
|
StartIcon="@Icons.Material.Filled.AccessTime"
|
||||||
StartIcon="@Icons.Material.Filled.Payment"
|
|
||||||
Class="rounded-lg mt-2">
|
Class="rounded-lg mt-2">
|
||||||
@if (_isProcessing)
|
<span>بزودی</span>
|
||||||
{
|
|
||||||
<MudProgressCircular Indeterminate="true" Size="Size.Small" Class="ml-2" />
|
|
||||||
<span>در حال انتقال به درگاه...</span>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<span>پرداخت از درگاه</span>
|
|
||||||
}
|
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|||||||
@@ -216,15 +216,15 @@
|
|||||||
<MudText Typo="Typo.body2" Class="mud-text-secondary">پرداخت آنی از طریق درگاه بانکی</MudText>
|
<MudText Typo="Typo.body2" Class="mud-text-secondary">پرداخت آنی از طریق درگاه بانکی</MudText>
|
||||||
@if (_purchaseCycleCount > 0)
|
@if (_purchaseCycleCount > 0)
|
||||||
{
|
{
|
||||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" FullWidth="true"
|
<MudButton Variant="Variant.Filled" Disabled="true" Color="Color.Primary" FullWidth="true"
|
||||||
StartIcon="@Icons.Material.Filled.Payment" OnClick="DirectPayment">
|
StartIcon="@Icons.Material.Filled.Payment">
|
||||||
پرداخت با کارت بانکی
|
پرداخت با کارت بانکی(بزودی)
|
||||||
</MudButton>
|
</MudButton>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<MudButton Variant="Variant.Filled" Disabled="true" Color="Color.Primary" FullWidth="true"
|
<MudButton Variant="Variant.Filled" Disabled="true" Color="Color.Primary" FullWidth="true"
|
||||||
StartIcon="@Icons.Material.Filled.Payment" OnClick="DirectPayment">
|
StartIcon="@Icons.Material.Filled.Payment">
|
||||||
پرداخت با کارت بانکی(بزودی)
|
پرداخت با کارت بانکی(بزودی)
|
||||||
</MudButton>
|
</MudButton>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,22 +138,13 @@
|
|||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
<MudButton Variant="Variant.Filled"
|
<MudButton Variant="Variant.Filled"
|
||||||
Color="Color.Primary"
|
Color="Color.Default"
|
||||||
Size="Size.Large"
|
Size="Size.Large"
|
||||||
FullWidth="true"
|
FullWidth="true"
|
||||||
Disabled="@(_chargeAmount <= 0 || _isProcessing)"
|
Disabled="true"
|
||||||
OnClick="StartMagicCharge"
|
StartIcon="@Icons.Material.Filled.AccessTime"
|
||||||
StartIcon="@Icons.Material.Filled.Payment"
|
|
||||||
Class="rounded-lg mt-2">
|
Class="rounded-lg mt-2">
|
||||||
@if (_isProcessing)
|
<span>بزودی</span>
|
||||||
{
|
|
||||||
<MudProgressCircular Indeterminate="true" Size="Size.Small" Class="ml-2" />
|
|
||||||
<span>در حال انتقال به درگاه...</span>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<span>پرداخت از درگاه</span>
|
|
||||||
}
|
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|||||||
Reference in New Issue
Block a user