Wappler 7 Beta: Delete Elements in Structure Panel Need a Confirmation Pop Up

Wappler Version : Wappler 7.0.0
Operating System : MacOS

Expected behavior

What do you think should happen?

When deleting an element from the Structure panel it should have a confirmation pop up. Server action delete has a nice confirmation.

Actual behavior

What actually happens?

There is no way to confirm a deletion. Way to easy to delete things by accident. Happened to me. Thank god for keyboard undo commands.

So far I like the beta but I cannot use it until this is fixed. Those buttons are very dangerous.

1 Like

We didn't do a confirmation in the structure panel because you have an option to undo the action in the editor so it is not destructive. In the file manager there is a confirm dialog because you can't undo that action. You can bypass the confirm dialog in the file manager by holding shift when pressing delete.

Problem is I accidentally clicked on a delete button and didn't catch it right away. I had to undo several steps of work to hopefully get it back. There has to be a way to prevent accidentally deleting elements. Thank god I caught the missing element in time or it would have been a disaster. I ended up deleting a 'section' that contained about 20 server connect actions. I would have had to redo all of those.

I would at least remove that option from the hover and make it a right click.

1 Like

Lets put some votes on this! Made it a feature reqiest

Voted.

This is so dangerous it shouldn't even be a discussion. Easy to just remove that option from the hover and make it right click menu to delete. I see no reason to have that there. Does not solve any issues people were having. Undo only works if you catch it right away.

The actions on hover are for quick access and will have the most used actions. We are still experimenting and figuring out which actions should go there and secondary actions will be available in the context menu or via short-cut keys. We hope with the beta to get enough feedback to determine which actions are most used and should be available on hover and the delete is maybe better as secondary since you normally don't go delete that much.

If the delete will be only in the context menu then I think the confirmation is not needed since you already have to do multiple mouse clicks and doing that by accident will not happen that fast.

3 Likes

If it is in the context menu I agree it doesn't need a confirmation as that has to be pretty deliberate. But the way it is now, I don't even know how I deleted it. The panel must have opened with the mouse over the delete option and I accidentally clicked on it. Good thing I test in browser very often or I wouldn't even have noticed it was gone. It took me awhile even to figure out what was deleted.

I can't use a mouse because of arthritis in my fingers so I use a track pad. So easy to accidentally click.

Besides, it is already easy to delete an element by simply selecting it in design view and hitting the delete button on the keyboard.

Git.

+1 :+1:

This seems to be added in Beta 2, thanks!

1 Like

perhaps context menu preference manager in the options so each can set it up as convenient for them..

Delete is still available with a right click. This prevents elements from being deleted without knowing it. I think it works great the way it is as. :wink:

sorry brad, did not make a distinction between it and the new visual hover quick action menu...to me i was a context menu so...
anyways, what i mean is if we could setup these menus in options e.g to show delete button etc is a better solution..

We want to keep the quick action menu items to a minimum (max 3 items). We removed the delete action and added the duplicate and insert after to it. We think those are the most used actions for the tree and all other actions are available under the context menu or using shortcut keys.

1 Like

It’s great the way it is now. Thank you