5sControl / 5sControl/5s-frontend

[0.09h] fix bug: can not delete the camera from Configuration page

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

Description

**Summary: нет возможности удалить камеру на странице Configuration при нажатии на иконку "корзины"**

Environment:
- v0.3.0 - python
- v0.3.0 - js

Preconditions:
- Пользователь авторизован
- Лицензионный ключ применен
- Камера авторизована

Steps to reproduce:
1. Перейти на вкладку "Configuration"
2. Напротив авторизованной камеры нажать на иконку "корзины"
3. В появившемся модальном окне подтвердить удаление, нажав на кнопку "Remove"

Expected result:
Происходит удаление камеры из системы

Actual result:
Удаление камеры не происходит. Ошибка 401

Attachment:
https://user-images.githubusercontent.com/109624457/234844879-797cc242-d8ca-41ec-94d5-f827789d7872.webm

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

The issue is about a 401 error when deleting a camera from the Configuration page. Start by examining the frontend code for the delete button handler and the API call it makes. Check the authentication token handling and the request headers. Look at the network tab in developer tools to see the exact failing request. The fix likely involves correcting the authorization header or the endpoint URL.

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é
3/5
Temps estimé
1-2 jours
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.