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