Opened 6 months ago

Closed 6 months ago

#22713 closed defect (bug) (fixed)

Media: Hide "Edit" link in the selection view when it doesn't make sense

Reported by: nacin Owned by: koopersmith
Priority: normal Milestone: 3.5
Component: Media Version: 3.5
Severity: normal Keywords: has-patch needs-testing commit
Cc:

Description

Say you are selecting attachments in the media dialog. There is an "Edit" link next to "Clear" and "X selected". It should not always show.

A selection should not be editable when:

  • You are creating a gallery, as to edit it, you should actually create the gallery. (For this, we should declare the view as not editable.)
  • You have only one item selected. (This should probably happen via CSS.)

Attachments (3)

22713.diff (1.6 KB) - added by nacin 6 months ago.
22713.2.diff (2.3 KB) - added by koopersmith 6 months ago.
22713.3.diff (2.3 KB) - added by ocean90 6 months ago.

Download all attachments as: .zip

Change History (11)

nacin6 months ago

  • Keywords commit added
  • Owner set to koopersmith
  • Status changed from new to assigned

# 3: While editing, there is no need for an Edit link because it doesn't do anything.

  • Keywords needs-refresh needs-body added; commit removed

Doesn't apply cleanly.

  • Keywords commit added; needs-refresh needs-body removed

Nevermind. Problem on my end.

  • Keywords needs-testing added; commit removed

Patch fixes all 3 cases, updates RTL CSS.

Looks good.

  • Keywords commit added
  • Resolution set to fixed
  • Status changed from assigned to closed

In 23031:

Media: Hide "Edit" link in the selection view when it doesn't make sense

Props koopersmith, ocean90, nacin
fixes #22713

Note: See TracTickets for help on using tickets.