Small fix for reviewer account

and remove feed links for now
This commit is contained in:
Gordon Pedersen 2024-06-28 09:36:04 +10:00
parent 2b1a6f203f
commit 61c8ed5604
4 changed files with 14 additions and 12 deletions

View file

@ -8,12 +8,12 @@
<i class="square fa-duotone fa-address-book"></i>
<span>Address Directory</span>
</a>
@if (State.IsAuthorized) {
@* @if (State.IsAuthorized) {
<a class="m s row" href="/feed">
<i class="square fa-solid fa-list-timeline"></i>
<span>Feed</span>
</a>
}
} *@
@foreach (AddressResponseData address in State.AddressList ?? new List<AddressResponseData>()) {
<a class="row @(address == State.SelectedAddress ? "active" : "")" @onclick="() => State.SelectedAddress = address">
<img class="tiny circle avatar" src="https://profiles.cache.lol/@address.Address/picture" alt="@address.Address" />

View file

@ -20,11 +20,11 @@
<i class="square fa-duotone fa-address-book"></i>
<div class="label">Address Directory</div>
</NavLink>
<AuthorizeView>
@* <AuthorizeView>
<Authorized>
<NavLink class="l nav-link" href="/feed">
<i class="square fa-solid fa-list-timeline"></i>
<div class="label">Feed</div>
</NavLink>
</Authorized>
</AuthorizeView>
</AuthorizeView> *@

View file

@ -152,6 +152,8 @@ namespace Neighbourhood.omg.lol.Models {
if (AccountInfo == null) {
AccountInfo = await api.AccountInfo();
if (AccountInfo != null) {
// quick fix for users without names (such as the review account)
if(AccountInfo.Name == null) AccountInfo.Name = AccountInfo.Email.Split('@').FirstOrDefault() ?? "person";
Preferences.Default.Set("accountdetails", JsonSerializer.Serialize(AccountInfo));
}
}

View file

@ -43,19 +43,19 @@
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
<ApplicationId>au.death.lol.omg.neighbourhood</ApplicationId>
<ApplicationDisplayVersion>0.9.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>0.9.1</ApplicationDisplayVersion>
<ApplicationVersion>2</ApplicationVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'">
<ApplicationId>au.death.lol.omg.neighbourhood</ApplicationId>
<ApplicationDisplayVersion>0.9.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>0.9.1</ApplicationDisplayVersion>
<ApplicationVersion>2</ApplicationVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android34.0|AnyCPU'">
<ApplicationId>au.death.lol.omg.neighbourhood</ApplicationId>
<ApplicationDisplayVersion>0.9.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>0.9.1</ApplicationDisplayVersion>
<AndroidKeyStore>True</AndroidKeyStore>
<AndroidSigningKeyStore>D:\Neighbourhood.omg.lol\neighbourhood.omg.lol.keystore</AndroidSigningKeyStore>
<ApplicationVersion>2</ApplicationVersion>
@ -66,31 +66,31 @@
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-windows10.0.19041.0|AnyCPU'">
<ApplicationId>au.death.lol.omg.neighbourhood</ApplicationId>
<ApplicationDisplayVersion>0.9.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>0.9.1</ApplicationDisplayVersion>
<ApplicationVersion>2</ApplicationVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'">
<ApplicationId>au.death.lol.omg.neighbourhood</ApplicationId>
<ApplicationDisplayVersion>0.9.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>0.9.1</ApplicationDisplayVersion>
<ApplicationVersion>2</ApplicationVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-maccatalyst|AnyCPU'">
<ApplicationId>au.death.lol.omg.neighbourhood</ApplicationId>
<ApplicationDisplayVersion>0.9.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>0.9.1</ApplicationDisplayVersion>
<ApplicationVersion>2</ApplicationVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-android34.0|AnyCPU'">
<ApplicationId>au.death.lol.omg.neighbourhood</ApplicationId>
<ApplicationDisplayVersion>0.9.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>0.9.1</ApplicationDisplayVersion>
<ApplicationVersion>2</ApplicationVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-windows10.0.19041.0|AnyCPU'">
<ApplicationId>au.death.lol.omg.neighbourhood</ApplicationId>
<ApplicationDisplayVersion>0.9.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>0.9.1</ApplicationDisplayVersion>
<ApplicationVersion>2</ApplicationVersion>
</PropertyGroup>