feat: add locked for account

This commit is contained in:
三咲智子 Kevin Deng 2023-07-03 01:55:18 +08:00
parent 338e203b6f
commit d5856b83c6
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
6 changed files with 45 additions and 8 deletions

View file

@ -47,6 +47,7 @@ const { form, reset, submitter, isDirty, isError } = useForm({
fieldsAttributes,
bot: account?.bot ?? false,
locked: account?.locked ?? false,
// These look more like account and privacy settings than appearance settings
// discoverable: false,
@ -143,13 +144,22 @@ onReactivated(refreshInfo)
:account="{ ...account, displayName: form.displayName }"
font-bold sm:text-2xl text-xl
/>
<label>
<AccountBotIndicator show-label px2 py1>
<template #prepend>
<input v-model="form.bot" type="checkbox" cursor-pointer>
</template>
</AccountBotIndicator>
</label>
<div flex="~ row" items-center gap2>
<label>
<AccountLockIndicator show-label px2 py1>
<template #prepend>
<input v-model="form.locked" type="checkbox" cursor-pointer>
</template>
</AccountLockIndicator>
</label>
<label>
<AccountBotIndicator show-label px2 py1>
<template #prepend>
<input v-model="form.bot" type="checkbox" cursor-pointer>
</template>
</AccountBotIndicator>
</label>
</div>
</div>
<AccountHandle :account="account" />
</div>