[30116] Make dropdown invisible for read-only users

https://community.openproject.com/wp/30116

[ci skip]
pull/7266/head
Oliver Günther 6 years ago
parent 9a2568f390
commit dab1b8bebc
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      frontend/src/app/modules/boards/board/board-list/board-list.component.html
  2. 5
      modules/boards/spec/features/board_management_spec.rb

@ -20,7 +20,7 @@
</editable-toolbar-title>
<div class="board-list--menu">
<a boardListDropdown>
<a boardListDropdown class="board-list--more-menu" *ngIf="canDelete">
<op-icon icon-classes="icon-show-more-horizontal"></op-icon>
</a>
</div>

@ -176,6 +176,11 @@ describe 'Board management spec', type: :feature, js: true do
board_page = board_index.open_board board_view
board_page.expect_query 'List 1', editable: false
board_page.expect_editable false
list = page.find(board_page.list_selector('List 1'))
list.hover
expect(page).to have_no_selector('.board-list--more-menu')
board_page.back_to_index
board_index.expect_board board_view.name

Loading…
Cancel
Save