Skip to content

Commit 2f87c7a

Browse files
committed
feature/51-issuefilter
1 parent 21aea7b commit 2f87c7a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ en:
2626
gtt_text_settings_geometry_example: "2747491302261fbc47967ba62621af22"
2727

2828
label_gtt: "GTT"
29+
label_gtt_bounding_box_filter: Location
2930
label_gtt_tile_source: Tile Source
3031
label_gtt_tile_source_new: New Tile Source
3132
label_gtt_tile_source_plural: Tile Sources

lib/redmine_gtt/patches/issue_query_patch.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ def self.apply
1313
def self.prepended(base)
1414
end
1515

16+
# weiter: use 'On map' option tag to hold current map extent
17+
# - wenn filter hinzugefügt befüllen (dom hook oder so?)
18+
# - on map move / zoom updaten (app.map.js)
19+
def initialize_available_filters()
20+
super
21+
if project and project.module_enabled?('gtt')
22+
add_available_filter(
23+
'location_filter',
24+
name: l(:label_gtt_location_filter),
25+
type: :list,
26+
values: ['On map']
27+
)
28+
end
29+
end
30+
1631
def available_columns
1732
super.tap do |columns|
1833
if project and !project.module_enabled?('gtt')

0 commit comments

Comments
 (0)