disable creation of dependent projects for builds from RELS
This commit is contained in:
parent
16fd0a106b
commit
4601de81e4
|
@ -14,6 +14,11 @@ module BuildListsHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def can_run_dependent_build_lists?(build_list)
|
||||||
|
build_list.save_to_platform.main? &&
|
||||||
|
build_list.save_to_platform.distrib_type == 'mdv'
|
||||||
|
end
|
||||||
|
|
||||||
def availables_main_platforms
|
def availables_main_platforms
|
||||||
Platform.availables_main_platforms current_user, current_ability
|
Platform.availables_main_platforms current_user, current_ability
|
||||||
end
|
end
|
||||||
|
|
|
@ -220,7 +220,7 @@
|
||||||
'ng-show' => 'build_list.can_create_container'
|
'ng-show' => 'build_list.can_create_container'
|
||||||
- if can? :create, @build_list
|
- if can? :create, @build_list
|
||||||
= link_to t('layout.build_lists.recreate_build_list'), new_project_build_list_path(@build_list.project, build_list_id: @build_list.id), class: 'button'
|
= link_to t('layout.build_lists.recreate_build_list'), new_project_build_list_path(@build_list.project, build_list_id: @build_list.id), class: 'button'
|
||||||
- if @build_list.save_to_platform.main?
|
- if can_run_dependent_build_lists?(@build_list)
|
||||||
= link_to t('layout.build_lists.run_build_lists'),
|
= link_to t('layout.build_lists.run_build_lists'),
|
||||||
project_build_lists_path(@build_list.project, origin: @build_list.id),
|
project_build_lists_path(@build_list.project, origin: @build_list.id),
|
||||||
method: :post,
|
method: :post,
|
||||||
|
|
Loading…
Reference in New Issue