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

Too easy to delete contact #1368

Closed
ralxxx opened this issue Dec 14, 2019 · 10 comments
Closed

Too easy to delete contact #1368

ralxxx opened this issue Dec 14, 2019 · 10 comments
Labels
3. to review Waiting for reviews design Related to the design enhancement New feature or request high High priority

Comments

@ralxxx
Copy link

ralxxx commented Dec 14, 2019

Is your feature request related to a problem? Please describe.
Currently it is very easy to delete a contact from the web backend. - just by clicking on the trash can next to the contact name in the contact list. The risk is that contacts are deleted by mistake.

Describe the solution you'd like
As it is rather the exception that a contact is being deleted from the contact list, I would prefer if a contact could be deleted only by clicking first on the contact itself and then on the three dots in the upper right corner (and finally confirming by deleting contact).

Additional context
80_nextclouddeletecontact2

80_nextclouddeletecontact

There's a link to another issue raised earlier: nextcloud/server#18181

@kesselb kesselb transferred this issue from nextcloud/server Dec 14, 2019
@skjnldsv
Copy link
Member

@jancborchardt shall we add a confirm? An undo (cc #637)? Both?
Add a separator?

@skjnldsv skjnldsv added 0. Needs triage design Related to the design enhancement New feature or request labels Dec 16, 2019
@lfischer
Copy link

lfischer commented Jan 1, 2020

Hello,
I would prefer a mandatory confirmation as minimum.

@jancborchardt
Copy link
Member

I agree that the trash action in the AppContentList is too much. It should only be in the 3-dot menu in the detail view.

This will already solve the biggest problem. Undo is a thing we should look into as well of course, but that’s separate.

@jancborchardt jancborchardt added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage labels Jan 2, 2020
@jancborchardt
Copy link
Member

jancborchardt commented Jan 2, 2020

If someone wants to submit a pull request to fix this, the only thing to do is simply to delete the following lines which are for the delete action:

<!-- undo actions -->
<div v-if="!contact.addressbook.readOnly && !deleteTimeout"
class="icon-delete"
tabindex="0"
@click.prevent.stop="deleteContact"
@keypress.enter.prevent.stop="deleteContact" />

Marking this as good first issue :)

@skjnldsv
Copy link
Member

skjnldsv commented Jan 2, 2020

If someone wants to submit a pull request to fix this, the only thing to do is simply to delete the following lines which are for the delete action:

this one is about the delete from top right menu @jancborchardt I think :)
So deleting the undo entry will not make it easier to delete
Also, it would make the undo action impossible

@jancborchardt
Copy link
Member

If someone wants to submit a pull request to fix this, the only thing to do is simply to delete the following lines which are for the delete action:

this one is about the delete from top right menu @jancborchardt I think :)

No, @ralxxx said (emphasis mine) ;)

Currently it is very easy to delete a contact from the web backend. - just by clicking on the trash can next to the contact name in the contact list.

Including the first screenshot of the circled trash cans. :)

@skjnldsv
Copy link
Member

skjnldsv commented Jan 6, 2020

I bought new 👓 ! 🙈
So we should remove the delete button from the list directly? Is it what you were trying to do with this ?

If someone wants to submit a pull request to fix this, the only thing to do is simply to delete the following lines which are for the delete action:

<!-- undo actions -->
<div v-if="!contact.addressbook.readOnly && !deleteTimeout"
class="icon-delete"
tabindex="0"
@click.prevent.stop="deleteContact"
@keypress.enter.prevent.stop="deleteContact" />

@jancborchardt
Copy link
Member

@skjnldsv exactly. :) I think this will be the simple fix. (The "Delete" action in the 3-dot menu of the detail view is totally fine, and not so easy to accidentally click.)

@skjnldsv
Copy link
Member

skjnldsv commented Jan 7, 2020

Then it's also a matter of removing the delete method/logic and undo methods/logic in the contacts/src/components/ContactsList/ContactsListItem.vue component :)
Not just removing the undo but also the delete entries 👍

jancborchardt added a commit that referenced this issue Jan 19, 2020
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
@jancborchardt jancborchardt added 3. to review Waiting for reviews and removed 1. to develop Accepted and waiting to be taken care of labels Jan 19, 2020
@jancborchardt
Copy link
Member

jancborchardt commented Jan 19, 2020

Pull request open at #1430 → please review :)

@jancborchardt jancborchardt removed the good first issue Good for newcomers label Jan 19, 2020
skjnldsv added a commit that referenced this issue Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews design Related to the design enhancement New feature or request high High priority
Projects
None yet
Development

No branches or pull requests

4 participants