[Glitch] Profile editing: Always show field buttons
Port 4a08ab64d1 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -205,24 +205,21 @@ export const AccountEdit: FC = () => {
|
|||||||
showDescription={!hasFields}
|
showDescription={!hasFields}
|
||||||
buttons={
|
buttons={
|
||||||
<>
|
<>
|
||||||
{profile.fields.length > 1 && (
|
<Button
|
||||||
<Button
|
className={classes.editButton}
|
||||||
className={classes.editButton}
|
onClick={handleCustomFieldReorder}
|
||||||
onClick={handleCustomFieldReorder}
|
disabled={profile.fields.length <= 1}
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='account_edit.custom_fields.reorder_button'
|
id='account_edit.custom_fields.reorder_button'
|
||||||
defaultMessage='Reorder fields'
|
defaultMessage='Reorder fields'
|
||||||
/>
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
{hasFields && (
|
|
||||||
<EditButton
|
|
||||||
item={messages.customFieldsName}
|
|
||||||
onClick={handleCustomFieldAdd}
|
|
||||||
disabled={profile.fields.length >= maxFieldCount}
|
|
||||||
/>
|
/>
|
||||||
)}
|
</Button>
|
||||||
|
<EditButton
|
||||||
|
item={messages.customFieldsName}
|
||||||
|
onClick={handleCustomFieldAdd}
|
||||||
|
disabled={profile.fields.length >= maxFieldCount}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user