Skip to content
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 #54

Closed
claell opened this issue Jan 22, 2017 · 10 comments · Fixed by #398
Closed

Undo deletion #54

claell opened this issue Jan 22, 2017 · 10 comments · Fixed by #398
Assignees
Labels
enhancement New feature or request feature: app navigation Related to the app navigation
Milestone

Comments

@claell
Copy link

claell commented Jan 22, 2017

Currently it is pretty easy to delete a note accidentally. A confirmation question would avoid this.

@stefan-niedermann
Copy link
Member

Better than a confirmation would be an undo function (a message at the top of the app that hides after ~5 sec.)

@claell
Copy link
Author

claell commented Jan 22, 2017

I think it can be discussed, whether this is really better than a question.
Personally I never liked the approach of an undo function, I prefer preventing an unwanted action rather than offering an option to revert it later.

However this approach is used on many other sites and might be easier to integrate into the current UI.

@korelstar
Copy link
Member

In addition, @jancborchardt considered to put the delete button in a 3-dot-menu, see #38. This would reduce the likelihood to hit the button by accident.

@jancborchardt jancborchardt changed the title Delete confirmation Undo deletion Jan 23, 2017
@jancborchardt
Copy link
Member

We should definitely go with undo, as is also planned for the server and other apps. See the main issue at nextcloud/server#3216 and cc @ChristophWurst who worked on an implementation.

@korelstar korelstar added the enhancement New feature or request label Apr 5, 2017
@waeltken
Copy link

I just deleted a set of notes by accident...

@jancborchardt
Copy link
Member

jancborchardt commented May 31, 2018

@waeltken can you open a separate issue and provide further info?

(Also just removed some comments related to the Android app which were separate from this topic.)

@nextcloud nextcloud deleted a comment from Perelandra0x309 Jun 5, 2018
@nextcloud nextcloud deleted a comment from korelstar Jun 5, 2018
@nextcloud nextcloud deleted a comment from Perelandra0x309 Jun 5, 2018
@korelstar
Copy link
Member

There is a CSS style for implementing this, available since NC12:
Animation of Undo
https://docs.nextcloud.com/server/13/developer_manual/design/navigation.html#undo-entry

@korelstar korelstar added this to the M1 – 🐛 Detail fixes milestone Aug 24, 2018
@korelstar korelstar self-assigned this Nov 21, 2018
@korelstar korelstar modified the milestones: M1 – 🐛 Detail fixes, 2.5.1, 2.6.0 Nov 21, 2018
@korelstar korelstar mentioned this issue Feb 11, 2019
54 tasks
@rodrigoaguilera
Copy link

I just hit this issue with a key combination.

I was undoing the edits I made on a note and I realized that my last CTRL+Z returned the whole note to a "new" status.

Is this related or should I file a new issue?

@korelstar
Copy link
Member

@rodrigoaguilera
That sounds like intended behavior: if you create a note, write some text and then press CTRL+Z (undo) multiple times, the note will be empty at some point. That's a feature from your browser. However, typically the browser provides CTRL+Y for redo the changes for which you've done an undo before. At least Firefox has this key command.

If you think that this is a problem of the notes app, please open a new issue, where we can discuss this. This issue is about deleting the whole note which is different.

@korelstar korelstar modified the milestones: 2.6.0, 3.0.0 Apr 3, 2019
@korelstar korelstar added the feature: app navigation Related to the app navigation label May 24, 2019
@korelstar korelstar modified the milestones: 3.0.0, 3.1.0 Jun 14, 2019
@korelstar
Copy link
Member

Depends on nextcloud-libraries/nextcloud-vue#470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature: app navigation Related to the app navigation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants