gray-mueller / gray-mueller/online-food-ordering-system-using-java

Loader Keeps Spinning on Tab After Adding a Category – Admin Panel

Open
#691 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When adding a new category from the Product page in the admin panel, a loader appears on the tab (likely the browser tab or section header) and continues spinning indefinitely, even after the category has been successfully added. This suggests that the action is incomplete or stuck, although the category may have been added in the background.

To Reproduce
Steps to reproduce the behavior:

Open the Product page in the admin panel

Use the dropdown to add a new category

Observe the tab or header loader animation

Notice that the loader does not stop, even after the action is done

Expected behavior
The loader should disappear once the category is successfully added and the action is complete, indicating to the user that the process is finished.

Screenshots

Recording 2025-06-24 120712.zip

Desktop (please complete the following information):

OS: Windows 11

Browser: Chrome

Version: 123.0.6312.86

Additional context
This may be caused by a missing or delayed response handler after the category creation API call. It can mislead users into thinking the process is still running or has failed. A proper success state and loader dismissal should be implemented.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.