-
-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve messages on the domain management pages #1420
Conversation
Signed-off-by: DL6ER <[email protected]>
@yubiuser So what instead? Orange warnings? After all, what the user asked for happened: All domains are on the list. In my opinion, it's not important if they were there before, the user wants them to be on the list and they are. |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/slight-bug-in-blacklist-uniqueness-constraint/33791/20 |
Mhh.. good point. I thought of "Warning" and orange. But you're right the users want to see it on the list and you just telling them they are already. No further actions of the users is required - so no "real" warning. P.S. Maybe I was distracted by the title of the PR stating "warning". In the end it is improved success message ;-) |
Thanks, I edited the title to make it more clear. |
How would you like to see this happening technically? |
I'm not 100% sure. It was just something that stuck out when I was testing |
@PromoFaux I checked how we could do this but the So idea: Count number of domains for the same type? If this changed but the total number didn't, then the action was moving the domain from another type to here. |
@PromoFaux Well, wait, we support adding two independent copies to the white- and blacklist so conversion does actually never happen? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-5-1-released/35577/1 |
By submitting this pull request, I confirm the following:
git rebase
)What does this PR aim to accomplish?:
See title
How does this PR accomplish the above?:
Test 1
Adding
doubleclick.net
on the blacklist shows:Trying to add it again shows:
Test 2
Remove
doubleclick.net from the blacklist and add
doubleclick.net doubleclick.net`:Again trying to add
doubleclick.net doubleclick.net
shows:What documentation changes (if any) are needed to support this PR?:
None