feat: enable gateway buttons - remove بزودی disabled state
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 6m40s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 6m40s
- ChargeDiscountWallet: active payment button with StartDiscountCharge - MagicWallet: active payment button with StartMagicCharge - Index: both branch buttons call DirectPayment with loading state
This commit is contained in:
@@ -78,13 +78,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
<MudButton Variant="Variant.Filled"
|
<MudButton Variant="Variant.Filled"
|
||||||
Color="Color.Default"
|
Color="Color.Primary"
|
||||||
Size="Size.Large"
|
Size="Size.Large"
|
||||||
FullWidth="true"
|
FullWidth="true"
|
||||||
Disabled="true"
|
Disabled="@(_isProcessing || _chargeAmount < 10_000)"
|
||||||
StartIcon="@Icons.Material.Filled.AccessTime"
|
OnClick="StartDiscountCharge"
|
||||||
|
StartIcon="@Icons.Material.Filled.Payment"
|
||||||
Class="rounded-lg mt-2">
|
Class="rounded-lg mt-2">
|
||||||
<span>بزودی</span>
|
@if (_isProcessing)
|
||||||
|
{
|
||||||
|
<MudProgressCircular Size="Size.Small" Indeterminate="true" Class="me-2" />
|
||||||
|
<span>در حال انتقال به درگاه...</span>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<span>پرداخت با کارت بانکی</span>
|
||||||
|
}
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|||||||
@@ -216,16 +216,36 @@
|
|||||||
<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" Disabled="true" Color="Color.Primary" FullWidth="true"
|
<MudButton Variant="Variant.Filled" Color="Color.Primary" FullWidth="true"
|
||||||
StartIcon="@Icons.Material.Filled.Payment">
|
Disabled="@_isProcessingPayment"
|
||||||
پرداخت با کارت بانکی(بزودی)
|
StartIcon="@Icons.Material.Filled.Payment"
|
||||||
|
OnClick="DirectPayment">
|
||||||
|
@if (_isProcessingPayment)
|
||||||
|
{
|
||||||
|
<MudProgressCircular Size="Size.Small" Indeterminate="true" Class="me-2" />
|
||||||
|
<span>در حال انتقال به درگاه...</span>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<span>پرداخت با کارت بانکی</span>
|
||||||
|
}
|
||||||
</MudButton>
|
</MudButton>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<MudButton Variant="Variant.Filled" Disabled="true" Color="Color.Primary" FullWidth="true"
|
<MudButton Variant="Variant.Filled" Color="Color.Primary" FullWidth="true"
|
||||||
StartIcon="@Icons.Material.Filled.Payment">
|
Disabled="@_isProcessingPayment"
|
||||||
پرداخت با کارت بانکی(بزودی)
|
StartIcon="@Icons.Material.Filled.Payment"
|
||||||
|
OnClick="DirectPayment">
|
||||||
|
@if (_isProcessingPayment)
|
||||||
|
{
|
||||||
|
<MudProgressCircular Size="Size.Small" Indeterminate="true" Class="me-2" />
|
||||||
|
<span>در حال انتقال به درگاه...</span>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<span>پرداخت با کارت بانکی</span>
|
||||||
|
}
|
||||||
</MudButton>
|
</MudButton>
|
||||||
}
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|||||||
@@ -138,13 +138,22 @@
|
|||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
<MudButton Variant="Variant.Filled"
|
<MudButton Variant="Variant.Filled"
|
||||||
Color="Color.Default"
|
Color="Color.Primary"
|
||||||
Size="Size.Large"
|
Size="Size.Large"
|
||||||
FullWidth="true"
|
FullWidth="true"
|
||||||
Disabled="true"
|
Disabled="@(_isProcessing || _chargeAmount < 10_000)"
|
||||||
StartIcon="@Icons.Material.Filled.AccessTime"
|
OnClick="StartMagicCharge"
|
||||||
|
StartIcon="@Icons.Material.Filled.Payment"
|
||||||
Class="rounded-lg mt-2">
|
Class="rounded-lg mt-2">
|
||||||
<span>بزودی</span>
|
@if (_isProcessing)
|
||||||
|
{
|
||||||
|
<MudProgressCircular Size="Size.Small" Indeterminate="true" Class="me-2" />
|
||||||
|
<span>در حال انتقال به درگاه...</span>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<span>پرداخت با کارت بانکی</span>
|
||||||
|
}
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|||||||
Reference in New Issue
Block a user