Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292480

"Delete" should not be the default action on /admin/content

$
0
0

Problem/Motivation

The default action on /admin/content is "Delete selected content". It's really easy to push "Apply" button by mistake, thinking it will apply the filter, because of the button title, and because it's positioned at the bottom of the form, typically where people expect to look for submit buttons. (This actually happened to me today, and I've been using Drupal for 8 years.)

screen
Existing content operations in Drupal 8
Existing content operations in Drupal 7

Proposed resolution

  • Use the D7 sort order (#3)
  • Make the default action something safer (or make the default a no-op).
  • Change the "Apply" button back to "Update" (like D7), "Execute", or even something action specific ("Delete").

Proposed alternatives

Alternatives for order of operations. The first operation in a list is the default.

Alternative 1: D7-like

  • Publish content
  • Unpublish content
  • Promote content to front page
  • Remove content from front page
  • Make content sticky
  • Make content unsticky
  • Delete content
  • Save content

Variation: Unpublish as default, by swapping Publish and Unpublish. This has the same Cons. For consistency the other operation pairs should also be swapped.

Alternative 2: Safe default

  • - None -
  • Publish content
  • Unpublish content
  • Delete content
  • Save content
  • Promote content to front page
  • Remove content from front page
  • Make content sticky
  • Make content unsticky

Variation: Place Delete and Save at the bottom of the list as in D7.

Alternative 3: Safe first

  • Make content sticky
  • Make content unsticky
  • Promote content to front page
  • Remove content from front page
  • Publish content
  • Unpublish content
  • Delete content
  • Save content

Variation: Use Promote/Demote as first operation pair.

Remaining tasks

  • Implement the suggestion in Comment #75
  • Fix the failing tests: see Comment #72
  • Make follow-up to delete the Save content option

User interface changes

Yes!

API changes

N/A


Viewing all articles
Browse latest Browse all 292480

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>