Skip to content

Commit

Permalink
Removed WebUrl from AuthService (dotnet-architecture#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadyNagy authored Jul 29, 2020
1 parent b640926 commit 98fb0ee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/BlazorAdmin/Pages/CatalogItemPage/Delete.razor
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="row">
@if (HasPicture)
{
<img class="col-md-6 esh-picture" src="@($"{Auth.WebUrl}{_item.PictureUri}")">
<img class="col-md-6 esh-picture" src="@($"{_item.PictureUri}")">
}
<dl class="col-md-@(HasPicture ? "6" : "12") dl-horizontal">
<dt>
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorAdmin/Pages/CatalogItemPage/Details.razor
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="row">
@if (HasPicture)
{
<img class="col-md-6 esh-picture" src="@($"{Auth.WebUrl}{_item.PictureUri}")">
<img class="col-md-6 esh-picture" src="@($"{_item.PictureUri}")">
}


Expand Down
2 changes: 1 addition & 1 deletion src/BlazorAdmin/Pages/CatalogItemPage/Edit.razor
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
[Parameter]
public EventCallback<string> OnCloseClick { get; set; }

private string LoadPicture => string.IsNullOrEmpty(_item.PictureBase64) ? string.IsNullOrEmpty(_item.PictureUri) ? string.Empty : $"{Auth.WebUrl}{_item.PictureUri}" : $"data:image/png;base64, {_item.PictureBase64}";
private string LoadPicture => string.IsNullOrEmpty(_item.PictureBase64) ? string.IsNullOrEmpty(_item.PictureUri) ? string.Empty : $"{_item.PictureUri}" : $"data:image/png;base64, {_item.PictureBase64}";
private bool HasPicture => !(string.IsNullOrEmpty(_item.PictureBase64) && string.IsNullOrEmpty(_item.PictureUri));
private string _badFileMessage = string.Empty;
private string _modalDisplay = "none;";
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorAdmin/Pages/CatalogItemPage/List.razor
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ else
{
<tr @onclick="@(() => DetailsClick(item.Id))">
<td>
<img class="img-thumbnail" src="@($"{Auth.WebUrl}{item.PictureUri}")">
<img class="img-thumbnail" src="@($"{item.PictureUri}")">
</td>
<td>@Services.CatalogTypeServices.List.GetTypeName(catalogTypes, item.CatalogTypeId)</td>
<td>@Services.CatalogBrandServices.List.GetBrandName(catalogBrands, item.CatalogBrandId)</td>
Expand Down
1 change: 0 additions & 1 deletion src/BlazorAdmin/Services/AuthService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class AuthService
private static bool InDocker { get; set; }

public string ApiUrl => Constants.GetApiUrl(InDocker);
public string WebUrl => Constants.GetWebUrl(InDocker);
public bool IsLoggedIn { get; set; }
public string UserName { get; set; }

Expand Down

0 comments on commit 98fb0ee

Please sign in to comment.