diff --git a/app/soapbox/features/group/edit-group.tsx b/app/soapbox/features/group/edit-group.tsx index 1e8024f6f9..57f0adfef5 100644 --- a/app/soapbox/features/group/edit-group.tsx +++ b/app/soapbox/features/group/edit-group.tsx @@ -5,6 +5,7 @@ import { Button, Column, Form, FormActions, FormGroup, Icon, Input, Spinner, Tex import { useAppSelector, useInstance } from 'soapbox/hooks'; import { useGroup, useUpdateGroup } from 'soapbox/hooks/api'; import { useImageField, useTextField } from 'soapbox/hooks/forms'; +import toast from 'soapbox/toast'; import { isDefaultAvatar, isDefaultHeader } from 'soapbox/utils/accounts'; import AvatarPicker from './components/group-avatar-picker'; @@ -20,7 +21,7 @@ const messages = defineMessages({ heading: { id: 'navigation_bar.edit_group', defaultMessage: 'Edit Group' }, groupNamePlaceholder: { id: 'manage_group.fields.name_placeholder', defaultMessage: 'Group Name' }, groupDescriptionPlaceholder: { id: 'manage_group.fields.description_placeholder', defaultMessage: 'Description' }, - success: { id: 'manage_group.success', defaultMessage: 'Group saved!' }, + groupSaved: { id: 'group.update.success', defaultMessage: 'Group successfully saved' }, }); interface IEditGroup { @@ -64,6 +65,7 @@ const EditGroup: React.FC = ({ params: { id: groupId } }) => { }); setIsSubmitting(false); + toast.success(intl.formatMessage(messages.groupSaved)); } const handleAddTag = () => { diff --git a/app/soapbox/locales/en.json b/app/soapbox/locales/en.json index 265cb1bcc7..b7a7a5f6db 100644 --- a/app/soapbox/locales/en.json +++ b/app/soapbox/locales/en.json @@ -811,6 +811,7 @@ "group.tabs.members": "Members", "group.tags.hint": "Add up to 3 keywords that will serve as core topics of discussion in the group.", "group.tags.label": "Tags", + "group.update.success": "Group successfully saved", "group.upload_banner": "Upload photo", "groups.discover.popular.empty": "Unable to fetch popular groups at this time. Please check back later.", "groups.discover.popular.show_more": "Show More", diff --git a/app/soapbox/normalizers/__tests__/instance.test.ts b/app/soapbox/normalizers/__tests__/instance.test.ts index 90472e7f8a..f2bac48670 100644 --- a/app/soapbox/normalizers/__tests__/instance.test.ts +++ b/app/soapbox/normalizers/__tests__/instance.test.ts @@ -25,7 +25,7 @@ describe('normalizeInstance()', () => { }, groups: { max_characters_name: 50, - max_characters_description: 100, + max_characters_description: 160, }, }, description: '', diff --git a/app/soapbox/normalizers/instance.ts b/app/soapbox/normalizers/instance.ts index 3632b9058b..77233c1430 100644 --- a/app/soapbox/normalizers/instance.ts +++ b/app/soapbox/normalizers/instance.ts @@ -37,7 +37,7 @@ export const InstanceRecord = ImmutableRecord({ }), groups: ImmutableMap({ max_characters_name: 50, - max_characters_description: 100, + max_characters_description: 160, }), }), description: '',