Moving of issuables only when the record already exists
This commit is contained in:
parent
672c8fd097
commit
d967b122a9
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@
|
||||||
- if can? current_user, :admin_label, issuable.project
|
- if can? current_user, :admin_label, issuable.project
|
||||||
= link_to 'Create new label', new_namespace_project_label_path(issuable.project.namespace, issuable.project), target: :blank
|
= link_to 'Create new label', new_namespace_project_label_path(issuable.project.namespace, issuable.project), target: :blank
|
||||||
|
|
||||||
- if issuable.can_move?(current_user)
|
- if issuable.can_move?(current_user) && issuable.persisted?
|
||||||
%hr
|
%hr
|
||||||
.form-group
|
.form-group
|
||||||
= label_tag :move_to_project_id, 'Move', class: 'control-label'
|
= label_tag :move_to_project_id, 'Move', class: 'control-label'
|
||||||
|
|
Loading…
Reference in a new issue