Skip to content

Hide milestone drag icon when no permission #1918

Closed

Description

@jerone

image

The icon to allow dragging of milestone issues is shown when you don't have permissions to edit milestones. Why not just hide this distracting functionality for users without milestone edit permissions.

      <div class="d-table-cell v-align-top pt-2 pr-1 text-gray-dark Box-row--drag-button  pl-2" style="width:21px;"> <!-- To line up with checkbox in filter bar -->
          <span class="tooltipped tooltipped-ne tooltipped-multiline" aria-label="You do not have permission to edit this milestone." style="/*! display: none; */">
            <svg class="octicon octicon-grabber v-align-text-bottom" style="width: 12px" viewBox="0 0 8 16" version="1.1" width="8" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8 4v1H0V4h8zM0 8h8V7H0v1zm0 3h8v-1H0v1z"></path></svg>
          </span>
      </div>

It can be linked to the aria-label-attribute with the specific text "You do not have permission to edit this milestone.".

Test url: https://github.com/ForkIssues/TrackerWin/milestone/9

Activity

  1. sindresorhus commented on Apr 18, 2019

    @sindresorhus
    Member

    Accepted. PR welcome :)

  2. added
    small
    and removed on Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions