Commit cbf0a9c7 authored by Gosia Ksionek's avatar Gosia Ksionek Committed by Kushal Pandya

Do not show new issue button on archived projects

parent a35c8f7c
......@@ -20,4 +20,5 @@
- if new_issue_email
= render 'projects/issuable_by_email', email: new_issue_email, issuable_type: 'issue'
- else
= render 'shared/empty_states/issues', button_path: new_project_issue_path(@project), show_import_button: true
- new_project_issue_button_path = @project.archived? ? false : new_project_issue_path(@project)
= render 'shared/empty_states/issues', new_project_issue_button_path: new_project_issue_button_path, show_import_button: true
- button_path = local_assigns.fetch(:button_path, false)
- button_path = local_assigns.fetch(:new_project_issue_button_path, false)
- project_select_button = local_assigns.fetch(:project_select_button, false)
- show_import_button = local_assigns.fetch(:show_import_button, false) && can?(current_user, :import_issues, @project)
- has_button = button_path || project_select_button
......@@ -56,4 +56,3 @@
- if show_import_button
= render 'projects/issues/import_csv/modal'
---
title: Do not show new issue button on archived projects
merge_request: 18590
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment