5sControl / 5sControl/5s-frontend

fix bug error message appears only once

Ouverte
#531 0 commentaires 0 réactions 1 personne assignée Réclamée par @AlexGurski Voir sur GitHub
bug
Langage dominant
TypeScript
Étoiles
3
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
react, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.