Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-03 21:10:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-03 21:10:18 +0300
commit3413ab248287b19b1d2cd1f78d957096546e8c37 (patch)
treeb59d4bddbee10eceebbe7a085c3d660307d03ca5 /lib/sidebars
parentdbe0e5676267eb142dd8d81e4c881c997cb96962 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sidebars')
-rw-r--r--lib/sidebars/context.rb3
-rw-r--r--lib/sidebars/your_work/panel.rb1
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/sidebars/context.rb b/lib/sidebars/context.rb
index 5db05932265..b49776bed10 100644
--- a/lib/sidebars/context.rb
+++ b/lib/sidebars/context.rb
@@ -6,11 +6,12 @@
# values where the logic is in helpers.
module Sidebars
class Context
- attr_reader :current_user, :container, :route_is_active
+ attr_reader :current_user, :container, :route_is_active, :is_super_sidebar
def initialize(current_user:, container:, **args)
@current_user = current_user
@container = container
+ @is_super_sidebar = false
args.each do |key, value|
singleton_class.public_send(:attr_reader, key) # rubocop:disable GitlabSecurity/PublicSend
diff --git a/lib/sidebars/your_work/panel.rb b/lib/sidebars/your_work/panel.rb
index f7dd8874f75..5f917976872 100644
--- a/lib/sidebars/your_work/panel.rb
+++ b/lib/sidebars/your_work/panel.rb
@@ -41,3 +41,4 @@ module Sidebars
end
end
end
+Sidebars::YourWork::Panel.prepend_mod_with('Sidebars::YourWork::Panel')