Show name of device in dialog question before deleting

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
User avatar
imautohuttraeger
Posts: 400
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Show name of device in dialog question before deleting

Post by imautohuttraeger »

When deleting a device / event etc., this security question pops up:
Are you sure to delete this Device? This action can not be undone...
Are you sure to delete this Event? This action can not be undone...
When it pops up, you can't control, if you really have clicked on the delete button of the correct entity.

Suggestion: If possible, include a variable to the text that shows the name and / or IDX of that entity. Maybe something like that:
Are you sure to delete the device "Temperature Livingro..."; IDX 123? This action can not be undone...
The maximum length of the string could be limited as shown above in order to not spoil the layout of the text.
Stop, look and listen.
User avatar
imautohuttraeger
Posts: 400
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Show name of device in dialog question before deleting

Post by imautohuttraeger »

I have created a GitHub feature request:

https://github.com/domoticz/domoticz/issues/6914
Stop, look and listen.
User avatar
gizmocuz
Posts: 3026
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Show name of device in dialog question before deleting

Post by gizmocuz »

You know on what device you clicked that button, not implementing
Quality outlives Quantity!
User avatar
imautohuttraeger
Posts: 400
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Show name of device in dialog question before deleting

Post by imautohuttraeger »

Closure of the GitHub issue just reminded my of this.

If you delete it from the particular device's "edit" screen: Indeed you should really know it.

But if you have clicked or touched on a wastebin in a list: You (at least an old guy with thick glasses like me 😉) can be quite uncertain, if you have really hit the correct line.

However - so be it.

My workaround (after I once wasted hours to retrace which device I had accidentally deleted):

Never delete a device out of a list.
Stop, look and listen.
Post Reply