48 lines
No EOL
1.5 KiB
Text
48 lines
No EOL
1.5 KiB
Text
@inject State State
|
|
<NavLink class="nav-link" href="/statuslog/latest">
|
|
<i class="square fa-solid fa-message-smile"></i>
|
|
<div class="label">Status.lol</div>
|
|
</NavLink>
|
|
<NavLink class="nav-link" href="/pics">
|
|
<i class="square fa-solid fa-images"></i>
|
|
<div class="label">Some.pics</div>
|
|
</NavLink>
|
|
<NavLink class="nav-link" href="/ephemeral">
|
|
<i class="square fa-light fa-comment-dots"></i>
|
|
<div class="label">Eph.emer.al</div>
|
|
</NavLink>
|
|
@if (FeatureFlags.Following && State.IsAuthorized) {
|
|
<NavLink class="nav-link" href="/feed">
|
|
<i class="square fa-solid fa-list-timeline"></i>
|
|
<div class="label">Timeline</div>
|
|
</NavLink>
|
|
<NavLink class="l m nav-link" href="/now">
|
|
<i class="square fa-duotone fa-seedling"></i>
|
|
<div class="label">Now.garden</div>
|
|
</NavLink>
|
|
}
|
|
else {
|
|
<NavLink class="nav-link" href="/now">
|
|
<i class="square fa-duotone fa-seedling"></i>
|
|
<div class="label">Now.garden</div>
|
|
</NavLink>
|
|
}
|
|
<NavLink class="l m nav-link" href="/directory">
|
|
<i class="square fa-duotone fa-address-book"></i>
|
|
<div class="label">Directory</div>
|
|
</NavLink>
|
|
|
|
@code {
|
|
protected override async Task OnInitializedAsync() {
|
|
await base.OnInitializedAsync();
|
|
State.PropertyChanged += StateChanged;
|
|
}
|
|
|
|
private async void StateChanged(object? sender, PropertyChangedEventArgs e) {
|
|
if (e.PropertyName == nameof(State.AccountInfo)) await InvokeAsync(StateHasChanged);
|
|
}
|
|
|
|
public void Dispose() {
|
|
State.PropertyChanged -= StateChanged;
|
|
}
|
|
} |