Code Monkey home page Code Monkey logo

Comments (10)

stefan-niedermann avatar stefan-niedermann commented on August 22, 2024 10

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

from notes.

claell avatar claell commented on August 22, 2024

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.

from notes.

korelstar avatar korelstar commented on August 22, 2024

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.

from notes.

jancborchardt avatar jancborchardt commented on August 22, 2024

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.

from notes.

waeltken avatar waeltken commented on August 22, 2024

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

from notes.

jancborchardt avatar jancborchardt commented on August 22, 2024

@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.)

from notes.

korelstar avatar korelstar commented on August 22, 2024

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

from notes.

rodrigoaguilera avatar rodrigoaguilera commented on August 22, 2024

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?

from notes.

korelstar avatar korelstar commented on August 22, 2024

@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.

from notes.

korelstar avatar korelstar commented on August 22, 2024

Depends on nextcloud-libraries/nextcloud-vue#470

from notes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.