Widget deletion bug

I just encountered a problem while editing a dashboard and deleting a widget.

When I try to delete the widget that contains my alarm info, pressing the little ‹ x › deletes the widget below… :confused:
A bit annoying!

If I click the ‹ x › on the bottom widget, the correct one is deleted.

To get around it I had to move the bottom widget to another column temporarily so I could safely delete the top one.

I’ll try to reproduce it tomorrow; after that I think it’s more of a display issue than anything else.

If you delete the first one, what’s probably happening is that the second one takes the first’s place (normal, it shifts up), except that the display isn’t refreshed so you get the impression that the second one was deleted (when it’s not).

I recommend you switch to the « Devices » box anyway :smiley:

1 Like

Ah ok, I didn’t want to take the risk of having to recreate this part of the dashboard, but I could also test, see if it’s simply a display issue :+1:

I’m in the process of "migrating" all my widgets to the new one, yes :wink:

Indeed, I can reproduce the bug, it’s an old bug that must have been there from the beginning :stuck_out_tongue:

It’s indeed a display-only bug (deletion does affect the correct widget), which occurs when you delete a « appareils de la pièce » widget above another « appareils de la pièce » widget of the same room only (very specific case).

Bug fixed in this PR :

2 Likes

Fix available in Gladys Assistant 4.28:

1 Like