[frontend/pages] Add bot, cat, and speak as cat profile settings

This commit is contained in:
pancakes 2024-11-28 12:42:18 +10:00 committed by Laura Hausmann
parent dad0fabc5b
commit cabfbdce0c
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -82,6 +82,22 @@
</button> </button>
</div> </div>
<div class="section">
<h3>@Loc["Other"]</h3>
<div>
<input type="checkbox" id="is-bot" @bind="@UserProfile.IsBot">
<label for="is-bot">@Loc["Mark as an automated (bot) account"]</label>
</div>
<div>
<input type="checkbox" id="is-cat" @bind="@UserProfile.IsCat">
<label for="is-cat">@Loc["Mark as a cat"]</label>
</div>
<div>
<input type="checkbox" id="speak-cat" @bind="@UserProfile.SpeakAsCat" disabled="@(!UserProfile.IsCat)">
<label for="speak-cat">@Loc["Speak as a cat"]</label>
</div>
</div>
<div class="section"> <div class="section">
<StateButton OnClick="SaveChanges" ExtraClasses="button" @ref="SaveButton"> <StateButton OnClick="SaveChanges" ExtraClasses="button" @ref="SaveButton">
<Initial> <Initial>