Update order pages with error handling and improved product images
This commit is contained in:
@@ -30,7 +30,8 @@
|
||||
<MudTd>
|
||||
<MudStack Spacing="1">
|
||||
<MudStack Row="true" Spacing="2" AlignItems="AlignItems.Center">
|
||||
<MudAvatar Image="@context.ImageUrl" Size="Size.Medium"/>
|
||||
<MudImage Src="@GetProductImageUrl(context.ImageUrl)" Alt="@context.Title"
|
||||
Width="64" Height="64" Class="product-thumb" />
|
||||
<MudText>@context.Title</MudText>
|
||||
</MudStack>
|
||||
@if (context.Discount > 0 || !string.IsNullOrWhiteSpace(context.Created) || !string.IsNullOrWhiteSpace(context.Description))
|
||||
@@ -85,7 +86,8 @@
|
||||
<MudStack Spacing="1">
|
||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||
<MudStack Row="true" Spacing="2" AlignItems="AlignItems.Center">
|
||||
<MudAvatar Image="@item.ImageUrl"/>
|
||||
<MudImage Src="@GetProductImageUrl(item.ImageUrl)" Alt="@item.Title"
|
||||
Width="50" Height="50" Class="rounded-circle" />
|
||||
<MudText Typo="Typo.subtitle2">@item.Title</MudText>
|
||||
</MudStack>
|
||||
@if (item.Discount > 0)
|
||||
@@ -99,11 +101,11 @@
|
||||
{
|
||||
<MudStack Spacing="1">
|
||||
|
||||
@if (!string.IsNullOrWhiteSpace(item.Description))
|
||||
{
|
||||
<MudText Typo="Typo.caption"
|
||||
Class="mud-text-secondary">@item.Description</MudText>
|
||||
}
|
||||
@* @if (!string.IsNullOrWhiteSpace(item.Description)) *@
|
||||
@* { *@
|
||||
@* <MudText Typo="Typo.caption" *@
|
||||
@* Class="mud-text-secondary">@item.Description</MudText> *@
|
||||
@* } *@
|
||||
@* @if (!string.IsNullOrWhiteSpace(item.Created)) *@
|
||||
@* { *@
|
||||
@* <MudText Typo="Typo.caption" Class="mud-text-secondary">تاریخ افزودن: @item.Created</MudText> *@
|
||||
@@ -151,7 +153,7 @@
|
||||
OnClick="() => Navigation.NavigateTo(RouteConstants.Store.Products)">افزودن محصول
|
||||
</MudButton>
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Success" OnClick="ProceedCheckout"
|
||||
StartIcon="@Icons.Material.Filled.CreditCard">ادامه فرایند خرید
|
||||
StartIcon="@Icons.Material.Filled.CreditCard">ادامه خرید
|
||||
</MudButton>
|
||||
</MudStack>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user