diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-05-12 14:08:15 +0000 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-05-12 14:08:15 +0000 |
commit | c266b5f57a09c13feef9c066856715f339076285 (patch) | |
tree | fcab527480d7cbf008ab6fb7a1f3c2790b2de64b | |
parent | b187377105796ff0857df52f27cc702bc0e85370 (diff) | |
parent | 80ec3f2715f121d3be41e4ce3b5bffc107322925 (diff) | |
download | gitlab-ce-c266b5f57a09c13feef9c066856715f339076285.tar.gz |
Merge branch '31384-new-issue-button-on-no-results-page-after-search-doesn-t-go-to-correct-form' into 'master'
Remove 'New Issue' button from 'There are no issues to show' state graphic
Closes #31384
See merge request !11263
3 files changed, 6 insertions, 1 deletions
diff --git a/app/views/shared/empty_states/_issues.html.haml b/app/views/shared/empty_states/_issues.html.haml index 12d99c3ab4b..046b127f73c 100644 --- a/app/views/shared/empty_states/_issues.html.haml +++ b/app/views/shared/empty_states/_issues.html.haml @@ -20,4 +20,3 @@ - else .text-center %h4 There are no issues to show. - = link_to 'New issue', button_path, class: 'btn btn-new', title: 'New issue', id: 'new_issue_link' diff --git a/changelogs/unreleased/31384-new-issue-button-on-no-results-page-after-search-doesn-t-go-to-correct-form.yml b/changelogs/unreleased/31384-new-issue-button-on-no-results-page-after-search-doesn-t-go-to-correct-form.yml new file mode 100644 index 00000000000..8d586616e07 --- /dev/null +++ b/changelogs/unreleased/31384-new-issue-button-on-no-results-page-after-search-doesn-t-go-to-correct-form.yml @@ -0,0 +1,4 @@ +--- +title: Remove 'New issue' button when issues search returns no results. +merge_request: !11263 +author: diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 5285dda361b..fdd78600a1d 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -573,6 +573,8 @@ describe 'Issues', feature: true do end describe 'new issue' do + let!(:issue) { create(:issue, project: project) } + context 'by unauthenticated user' do before do logout |