feat(issuecomment): fix translation issue (#1635)

Fix the `Save Changes` and `Cancel` buttons so that their text will now translate

fix #1604
This commit is contained in:
wolffman122
2025-05-06 07:49:17 -04:00
committed by GitHub
parent 236d431fa3
commit 8a42fe16b5

View File

@@ -2,6 +2,7 @@ import Button from '@app/components/Common/Button';
import CachedImage from '@app/components/Common/CachedImage';
import Modal from '@app/components/Common/Modal';
import { Permission, useUser } from '@app/hooks/useUser';
import globalMessages from '@app/i18n/globalMessages';
import defineMessages from '@app/utils/defineMessages';
import { Menu, Transition } from '@headlessui/react';
import { EllipsisVerticalIcon } from '@heroicons/react/24/solid';
@@ -207,13 +208,13 @@ const IssueComment = ({
type="button"
onClick={() => setIsEditing(false)}
>
Cancel
{intl.formatMessage(globalMessages.cancel)}
</Button>
<Button
buttonType="primary"
disabled={!isValid || isSubmitting}
>
Save Changes
{intl.formatMessage(globalMessages.save)}
</Button>
</div>
</Form>