fix: update placeholders in version info modal to indicate optional field (#15499)

This commit is contained in:
Wu Tianwei 2025-03-11 18:30:47 +08:00 committed by GitHub
parent b07016113c
commit 90a1508b87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ const VersionInfoModal: FC<VersionInfoModalProps> = ({
</div>
<Input
value={title}
placeholder={t('workflow.versionHistory.nameThisVersion')}
placeholder={`${t('workflow.versionHistory.nameThisVersion')}${t('workflow.panel.optional')}`}
onChange={handleTitleChange}
destructive={titleError}
/>
@ -94,7 +94,7 @@ const VersionInfoModal: FC<VersionInfoModalProps> = ({
</div>
<Textarea
value={releaseNotes}
placeholder={t('workflow.versionHistory.releaseNotesPlaceholder')}
placeholder={`${t('workflow.versionHistory.releaseNotesPlaceholder')}${t('workflow.panel.optional')}`}
onChange={handleDescriptionChange}
destructive={releaseNotesError}
/>