Skip to content

Commit

Permalink
Hide "Expand credits" after using it
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalmers committed May 27, 2024
1 parent 2aaff29 commit 970fbfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion JournalApp/Pages/SettingsPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ else
<MudTextField T="string" Text="@CreditsText" Typo="Typo.body2" ReadOnly Underline="false"
AutoGrow MaxLines="_creditsExpanded ? 0 : 5" FullWidth />

<MudLink OnClick="() => _creditsExpanded = true">Expand credits</MudLink>
@if (!_creditsExpanded)
{
<MudLink OnClick="() => _creditsExpanded = true">Expand credits</MudLink>
}
</section>
</div>
</main>
Expand Down

0 comments on commit 970fbfc

Please sign in to comment.