jeromelebel/MongoHub-Mac

Confirmation Dialog when using remove {}

mdestagnol opened this issue · 10 comments

It could be great to have a confirmation dialog when using the remove functionality. This tab is really dangerous in production environment.

[master 56f56da] adding a confirmation dialog correctly when removing all documents #33

Fixed in 2.5.3(97). I let you close this issue once you verified it.

At least make this a preference/option. In dev, I don't want to have to confirm every time I remove rows.

The confirmation dialog is only when the query is empty, so it will remove all documents. You can also do in the document view command-a and command-delete.

Confirmation is showing no matter what in 2.5.3[97]. Even if I put {} in the query.

Yes, that's what I implemented. {} is an empty query.

But there is something interesting about defining what is a prod database and a dev database...

virl commented

Just add "Production/Development" settings switch (defaults to Production) to connection and adjust confirmations/dialogs accordingly.

Also see #71, #65.

I think that has been fixed.

virl commented

Ok, thanks.