-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Undo deletion (of files, users, contacts etc) #3216
Comments
What style of popup/modal/notification do we want for that? |
I would say |
@schiessle mentioned that this could be done by triggering the restore function of the »Deleted files« app. Might be good as a first working implementation. :) |
What about a menu like the contact menu with a count indicator (like the notification icon) of how many items are still in the undo section? |
@skjnldsv a counter is not really necessary and strangely obstructive. That’s also not how any other undo mechanism works which people are used to from Google or Apple apps. :) |
Traditional tri-yearly postponing of this issue to the next milestone. 🎉 |
I like this idea and agree with @jancborchardt about the counter: we should keep it simple, as anybody can still go to the Any chance to see it happening in NC14? I'd be particularly interested in seeing this possibility anywhere in NC, including apps (incl. contacts, calendar, deck) |
Totally. Would you be interested in implementing this functionality? |
I'd love to... but I don't have any skills in coding. Available for testing though |
The simplest way would be to add a column |
I was thinking about how to implement undo for deleted notes in the Notes app. My idea was: Don't delete the object when the user wants to delete it, but just mark it as deleted on the client frontend and show an undo button. After seven seconds, remove the button and delete the object in the backend. Drawback of this approach: if the client looses the connection to the server during these seven seconds, the object can't be finally deleted. Is this anyway a valid approach for generalization? The advantage is that it's implementation is relatively easy (only frontend). |
You are running through open door here. :-) Mine was exactly the same with a specific idea for the database side. |
This comment has been minimized.
This comment has been minimized.
@korelstar Good point. What do you say @jancborchardt ? |
Wouldn't it be possible to have something like a cron job in the backend handle such requests of deletion? The frontend would then only communicate, that the file to be deleted will be gone in minimum 7 seconds and maximum $cron_repeat_time_for_delete_requests (or something). Sorry I am just a hobbyist developer, no more coding expierience in PHP for many years.. |
I just lost all of my contacts in Nextcloud because Outlook decided that a deletion of its contact via the Google Contacts Android application deletes all linked contacts. I can't believe that I can see all of my contacts in the activity log, but that no recycle bin of sorts exists. This is really necessary. By the way, @jancborchardt, http://alistapart.com/article/neveruseawarning was exactly the reason that I accidentally did this. |
(Since the relevant pull request was closed, opening this to track the feature: #1610 )
We should offer undo for destructive actions. This is a normal software pattern now (see Gmail, Android etc) and is very nice as opposed to modal windows. Also read Never Use a Warning When you Mean Undo
cc @nextcloud/javascript @ChristophWurst
The text was updated successfully, but these errors were encountered: