Skip to content

pi-hole web-ui when adding domain to blocklist via the query page it is still being displayed and the button to block the domain is still present #1202

@mhussaincov

Description

@mhussaincov

In raising this issue, I confirm the following: {please fill the checkboxes, e.g: [X]}

How familiar are you with the the source code relevant to this issue?:

{Replace this with a number from 1 to 10. 1 being not familiar, and 10 being very familiar}
1

Expected behaviour:

after a domain is added to the blocklist the domain should not be listed any more
{A detailed description of what you expect to see}
I expect the domain to have a button that says blacklist converted to whitelist to signifie that the domain has been blacklisted or whitelisted.

Actual behaviour:
the button that states blacklist is still present below the domain
so i blacklist github.com via this url:
http://pi.hole/admin/queries.php?client=192.168.122.1
I wate a few seconds,
and refresh the page using control plus f5
the button that says blacklist is still there
it has not turned in to a button that says whitelist.
I hope this makes sence,

{A detailed description and/or screenshots of what you do see}

Steps to reproduce:

  1. log in to your pi-hole webui

go to one of your named clients where it says
top clients total
and click on one of the names of your connected clients.
3.
try to block a domain
4.
refresh the page after a few seconds.
5
you will see that the blacklist button is still present
below the domain you just tryed blacklisting,
note, the domain does get blacklisted.
it is not displayed on the web-ui.

{Detailed steps of how we can reproduce this}

Debug token provided by uploading pihole -d log:

{Alphanumeric token}

Troubleshooting undertaken, and/or other relevant information:
i'm running pi-hole on the dev-trane,
and understand that breakages are a feature of this.
updated to the very latest dev version
{Steps of what you have done to fix this}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions