Skip to content
代码片段 群组 项目
未验证 提交 293ddfa5 编辑于 作者: Alex Pooley's avatar Alex Pooley 提交者: GitLab
浏览文件

Merge branch '425154-reorganise-nav-item' into 'master'

Moves GAR menu item below the Container Registry menu item

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/143767



Merged-by: default avatarAlex Pooley <apooley@gitlab.com>
Approved-by: default avatarKasia Misirli <kmisirli@gitlab.com>
Approved-by: default avatarAlex Pooley <apooley@gitlab.com>
Co-authored-by: default avatarRahul Chanila <rchanila@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
allow(project).to receive(:licensed_feature_available?).and_return true allow(project).to receive(:licensed_feature_available?).and_return true
# Needed to show Container Registry items # Needed to show Container Registry items
allow(::Gitlab.config.registry).to receive(:enabled).and_return(true) allow(::Gitlab.config.registry).to receive(:enabled).and_return(true)
# Needed to show Google Artifactory Registry items
allow(project).to receive(:gcp_artifact_registry_enabled?).and_return true
# Iterations are only available in non-personal projects # Iterations are only available in non-personal projects
allow(project).to receive(:personal?).and_return(false) allow(project).to receive(:personal?).and_return(false)
end end
......
...@@ -21,6 +21,7 @@ def configure_menu_items ...@@ -21,6 +21,7 @@ def configure_menu_items
:feature_flags, :feature_flags,
:packages_registry, :packages_registry,
:container_registry, :container_registry,
:google_artifact_registry,
:model_registry :model_registry
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) } ].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
end end
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
:feature_flags, :feature_flags,
:packages_registry, :packages_registry,
:container_registry, :container_registry,
:google_artifact_registry,
:model_registry :model_registry
]) ])
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册