Sha256: 9007153aa017b1bd6151834d76960ed0ca5adee31a5ed54524a4f8fd2f507cd9

Contents?: true

Size: 625 Bytes

Versions: 11

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

module AdditionalTags
  module Patches
    module DashboardContentPatch
      extend ActiveSupport::Concern

      included do
        prepend InstanceOverwriteMethods
      end

      module InstanceOverwriteMethods
        def block_definitions
          blocks = super

          blocks['issue_tags'] = {
            label: l(:field_issue_tags),
            permission: :view_issue_tags,
            if: proc { AdditionalTags.setting?(:active_issue_tags) },
            async: { partial: 'dashboards/blocks/issue_tags' }
          }

          blocks
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
additional_tags-3.4.0 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-3.3.2 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-3.3.1 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-3.2.0 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-3.1.0 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-3.0.9 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-1.0.7 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-1.0.6 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-1.0.5 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-1.0.4 lib/additional_tags/patches/dashboard_content_patch.rb
additional_tags-1.0.3 lib/additional_tags/patches/dashboard_content_patch.rb