5sControl / 5sControl/5s-frontend
fix bug error message appears only once
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Сообщение об ошибке "Camera not create" появляется только после первого клика по кнопке "Done"
**environment:**
win 11
Chrome 114
**precondition:**
пользователь авторизован
открыта страница "Configuration"
авторизована камера
**STR:**
1. Кликнуть по созданной камере
2. Кликнуть по кнопке "Edit" во вкладке "Camera" окна "Camera Settings"
3. Очистить данные с полей "Username", "Password"
4. Кликнуть по кнопке "Done" несколько раз окна "Camera connection"
5. Кликнуть по кнопке "Done" несколько раз окна "Camera Settings"
**ER;**
Сообщение об ошибке "Camera not create" появляется после каждого клика по кнопке "Done"
**AR:**
Сообщение об ошибке "Camera not create" появляется только 1 раз
**Attachments:**
https://drive.google.com/file/d/1uL09pW3cXIzBu0Drn9DlRg6SHIsvt2If/view?usp=drive_link
Contributor guide
Research direction
The issue describes a bug where an error message 'Camera not create' appears only once instead of on each click. Look for the 'Configuration' page, the 'Camera Settings' modal, and the 'Done' button click handlers. Check how error messages are displayed and cleared, likely in a React component managing camera connection state. The video attachment may show the UI flow. Verify the fix by testing the steps in the bug report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100