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> <i class="square fa-duotone fa-address-book"></i>
<span>Address Directory</span> <span>Address Directory</span>
</a> </a>
@if (State.IsAuthorized) { @* @if (State.IsAuthorized) {
<a class="m s row" href="/feed"> <a class="m s row" href="/feed">
<i class="square fa-solid fa-list-timeline"></i> <i class="square fa-solid fa-list-timeline"></i>
<span>Feed</span> <span>Feed</span>
</a> </a>
} } *@
@foreach (AddressResponseData address in State.AddressList ?? new List<AddressResponseData>()) { @foreach (AddressResponseData address in State.AddressList ?? new List<AddressResponseData>()) {
<a class="row @(address == State.SelectedAddress ? "active" : "")" @onclick="() => State.SelectedAddress = address"> <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" /> <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> <i class="square fa-duotone fa-address-book"></i>
<div class="label">Address Directory</div> <div class="label">Address Directory</div>
</NavLink> </NavLink>
<AuthorizeView> @* <AuthorizeView>
<Authorized> <Authorized>
<NavLink class="l nav-link" href="/feed"> <NavLink class="l nav-link" href="/feed">
<i class="square fa-solid fa-list-timeline"></i> <i class="square fa-solid fa-list-timeline"></i>
<div class="label">Feed</div> <div class="label">Feed</div>
</NavLink> </NavLink>
</Authorized> </Authorized>
</AuthorizeView> </AuthorizeView> *@

View file

@ -152,6 +152,8 @@ namespace Neighbourhood.omg.lol.Models {
if (AccountInfo == null) { if (AccountInfo == null) {
AccountInfo = await api.AccountInfo(); AccountInfo = await api.AccountInfo();
if (AccountInfo != null) { 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)); Preferences.Default.Set("accountdetails", JsonSerializer.Serialize(AccountInfo));
} }
} }

View file

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