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

operations_menu.rb « super_sidebar_menus « projects « sidebars « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 85d60c0bad3e87024e3e32a6f326e8ff27819196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# frozen_string_literal: true

module Sidebars
  module Projects
    module SuperSidebarMenus
      class OperationsMenu < ::Sidebars::Menu
        override :title
        def title
          s_('Navigation|Operate')
        end

        override :sprite_icon
        def sprite_icon
          'cloud-pod'
        end

        override :configure_menu_items
        def configure_menu_items
          [
            :environments,
            :kubernetes,
            :terraform_states,
            :infrastructure_registry,
            :google_cloud,
            :aws
          ].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
        end
      end
    end
  end
end