Skip to content

Commit

Permalink
chore: add translations, remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Mar 28, 2024
1 parent 3ea9dcf commit b3744eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions js/src/forum/components/PollForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,6 @@ export default class PollForm extends Component<PollFormAttrs, PollFormState> {
/>
{app.forum.attribute<boolean>('allowPollOptionImage') && (
<div className="Poll-answer-image">
{/* <input
className="FormControl"
type="text"
name={'answerImage' + (i + 1)}
bidi={this.optionImageUrls[i]}
placeholder={app.translator.trans('fof-polls.forum.modal.image_option_placeholder') + ' #' + (i + 1)}
/> */}
<label className="label">{app.translator.trans('fof-polls.forum.modal.poll_option_image.label')}</label>
<p className="helpText">{app.translator.trans('fof-polls.forum.modal.poll_option_image.help')}</p>
<UploadPollImageButton name="pollOptionImage" option={option} onUpload={this.pollOptionImageUploadSuccess.bind(this, i)} />
Expand Down
3 changes: 3 additions & 0 deletions resources/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ fof-polls:
help: Upload an image to be displayed alongside the poll (optional).
alt_label: Image Alt Text
alt_help_text: This text is required when an image is set, it will be displayed if the image fails to load.
poll_option_image:
label: Poll Answer Image
help: Upload an image to be displayed alongside the poll answer (optional).
tooltip:
options:
add-button: Add Answer
Expand Down

0 comments on commit b3744eb

Please sign in to comment.