5sControl / 5sControl/5s-frontend

fix bug fields are empty after clicking button "cancel" in camera connection window

Ouverte
#532 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

Поля не заполняются прошлыми данными после клика "Cancel"

**Precondition**
пользователь авторизован
камера авторизована
открыта страница "Configuration"

**Environment:**
win 11
CHrom 114

**STR:**
1. Кликнуть по камере
2. Кликнуть по кнопке "Edit" в окне "Camera Settings"
3. Очистить данные в полях "Username", "Password" "Camera connection"
4. Кликнуть по кнопке "Cancel"
5. Кликнуть по кнопке "Edit" в окне "Camera Settings"

**ER:**
Поля "Username", "Paassword" заполнены предыдущими данными, которые были стерты

**AR:**
Поля "Username", "Paassword" пустые

**Attachments:**
https://drive.google.com/file/d/1xT2ObDt7pEV6l7jQ5IF7zOu6KDxckk_K/view?usp=drive_link

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Look for the camera connection window component, likely in a file like CameraSettings.tsx or similar. Find the edit form and the cancel button handler. The bug is that the form state is not being reset to the previous values on cancel. Check how the form data is managed (state, props, context) and ensure the cancel action reverts changes. Verify by testing the UI flow described.

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
45/100

Recevez les nouvelles issues par e-mail

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