mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
Profile editing: Always show field buttons (#38152)
This commit is contained in:
parent
20932752fe
commit
4a08ab64d1
|
|
@ -205,24 +205,21 @@ export const AccountEdit: FC = () => {
|
|||
showDescription={!hasFields}
|
||||
buttons={
|
||||
<>
|
||||
{profile.fields.length > 1 && (
|
||||
<Button
|
||||
className={classes.editButton}
|
||||
onClick={handleCustomFieldReorder}
|
||||
>
|
||||
<FormattedMessage
|
||||
id='account_edit.custom_fields.reorder_button'
|
||||
defaultMessage='Reorder fields'
|
||||
/>
|
||||
</Button>
|
||||
)}
|
||||
{hasFields && (
|
||||
<EditButton
|
||||
item={messages.customFieldsName}
|
||||
onClick={handleCustomFieldAdd}
|
||||
disabled={profile.fields.length >= maxFieldCount}
|
||||
<Button
|
||||
className={classes.editButton}
|
||||
onClick={handleCustomFieldReorder}
|
||||
disabled={profile.fields.length <= 1}
|
||||
>
|
||||
<FormattedMessage
|
||||
id='account_edit.custom_fields.reorder_button'
|
||||
defaultMessage='Reorder fields'
|
||||
/>
|
||||
)}
|
||||
</Button>
|
||||
<EditButton
|
||||
item={messages.customFieldsName}
|
||||
onClick={handleCustomFieldAdd}
|
||||
disabled={profile.fields.length >= maxFieldCount}
|
||||
/>
|
||||
</>
|
||||
}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user