diff options
author | Dave Arter <davea@mysociety.org> | 2020-05-14 16:48:30 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2020-05-14 16:49:08 +0100 |
commit | c2b32091198d3ca3d8dc0da7302f96de9ce0acc9 (patch) | |
tree | 88cf2d737951c07ef5171ca30271854420ccd372 | |
parent | f749f9ec30165bbe1d97410e070e4acc92d8eb33 (diff) |
[Peterborough] Show lighting layer on ‘Lighting enquiry’ category in all groups
-rw-r--r-- | web/cobrands/peterborough/assets.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/cobrands/peterborough/assets.js b/web/cobrands/peterborough/assets.js index 58ec4e5a1..3d718116e 100644 --- a/web/cobrands/peterborough/assets.js +++ b/web/cobrands/peterborough/assets.js @@ -137,8 +137,11 @@ fixmystreet.assets.add(light_defaults, { } }, asset_group: 'Street lighting', + asset_category: 'Lighting enquiry', relevant: function(options) { - return options.group === 'Street lighting' && options.category !== UNKNOWN_LIGHT_CATEGORY_NAME; + return ( options.group === 'Street lighting' && + options.category !== UNKNOWN_LIGHT_CATEGORY_NAME + ) || options.category === "Lighting enquiry"; }, asset_item_message: 'You can pick a <b class="asset-spot">street light</b> from the map »', select_action: true, |