...
This commit is contained in:
@@ -164,17 +164,15 @@
|
|||||||
}
|
}
|
||||||
private async Task<List<OrderItemDto>> LoadOrderItem()
|
private async Task<List<OrderItemDto>> LoadOrderItem()
|
||||||
{
|
{
|
||||||
SpinnerVisible = true;
|
|
||||||
var rsp = await hc.Get($"Orders/GetOrderDetails/{order.ID}");
|
var rsp = await hc.Get($"Orders/GetOrderDetails/{order.ID}");
|
||||||
if (rsp.IsSuccessStatusCode)
|
if (rsp.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
SpinnerVisible = false;
|
|
||||||
return await rsp.Content.ReadFromJsonAsync<List<OrderItemDto>?>();
|
return await rsp.Content.ReadFromJsonAsync<List<OrderItemDto>?>();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
SpinnerVisible = false;
|
|
||||||
ShowDangerAlert("خطایی در بارگیری");
|
ShowDangerAlert("خطایی در بارگیری");
|
||||||
return new List<OrderItemDto>();
|
return new List<OrderItemDto>();
|
||||||
}
|
}
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
<InputFile OnChange="changePic" type="file" id="upload" class="account-file-input" hidden="" accept="image/png, image/jpeg"/>
|
<InputFile OnChange="changePic" type="file" id="upload" class="account-file-input" hidden="" accept="image/png, image/jpeg"/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<p class="text-muted mb-0">JPG، GIF یا PNG مجاز است. حداکثر اندازه @maxFileSize هزار</p>
|
<p class="text-muted mb-0">JPG، GIF یا PNG مجاز است. حداکثر اندازه 3 megabyte</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -129,7 +129,9 @@
|
|||||||
public string from { get; set; } = "";
|
public string from { get; set; } = "";
|
||||||
|
|
||||||
public string _src { get; set; }
|
public string _src { get; set; }
|
||||||
private long maxFileSize = 1024 * 15;
|
|
||||||
|
//3m
|
||||||
|
private long maxFileSize = 3145710;
|
||||||
[SupplyParameterFromForm]
|
[SupplyParameterFromForm]
|
||||||
public ChangePasswordDto changepassModel { get; set; }
|
public ChangePasswordDto changepassModel { get; set; }
|
||||||
[SupplyParameterFromForm]
|
[SupplyParameterFromForm]
|
||||||
|
Reference in New Issue
Block a user