Skip to content

Commit

Permalink
[Shropshire] Add relevant messaging to the no_asset_message
Browse files Browse the repository at this point in the history
As locking the page from progressing is done using the standard
no asset process, update the no_asset_message attribute to contain
the same informative messaging as at the continue button.

Also solves issues of informative messaging not appearing on
the subcategory screen if you get to subcategory and then
choose a parish light which would mean there was no explanation
on the page as to why you were blocked from going forward.

mysociety/societyworks#3996
  • Loading branch information
MorayMySoc committed Dec 7, 2023
1 parent b766f6f commit 06bc6de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/cobrands/fixmystreet-uk-councils/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,10 @@ fixmystreet.assets.shropshire.streetlight_stylemap = new OpenLayers.StyleMap({

fixmystreet.assets.shropshire.streetlight_found = function(asset) {
var controller_fn = shropshire_light(asset) ? 'asset_found' : 'asset_not_found';
if (asset.attributes.OWNER) {
this.fixmystreet.no_asset_msg_id = '#sl-owner-' + asset.attributes.FEAT_LABEL + asset.attributes.OWNER.replace(/[^a-zA-Z0-9]/g, '');
this.fixmystreet.no_asset_message = fixmystreet.assets.shropshire.streetlight_asset_message(asset);
}
fixmystreet.message_controller[controller_fn].call(this);
fixmystreet.assets.named_select_action_found.call(this, asset);
};
Expand Down

0 comments on commit 06bc6de

Please sign in to comment.