Skip to content

[UploadImage] Disable "Save" button when no image selected #3874

@imnasnainaec

Description

@imnasnainaec

Task

Component to modify: https://github.com/sillsdev/TheCombine/blob/master/src/components/Dialogs/UploadImage.tsx

Current: The dialog has a "Browse" and "Save" button. The save button doesn't do anything if Browse hasn't been used to select a file.
Target: The "Save" button should be disabled if no file is selected.


Interface notes

Accessed in two different ways:

  • click avatar in top bar to open user menu > User Settings > click avatar in user settings to upload
  • open a project > click gear in top bar to open project settings > Users > Manage speakers > add a speaker > click + to open consent menu options > Upload image consent

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions