Skip to content

Commit

Permalink
Update User Location selector to use new scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
merefield committed Jan 27, 2025
1 parent df350eb commit 3adafe7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export default class UserCustomPrefsMapLocation extends Component {
this.error = error;
}

@action
updateLocation(location) {
this.error = null;
this.args.outletArgs.model.custom_fields.geo_location = location;
}

<template>
{{#if this.siteSettings.location_users_map}}
<div class="user-location-selector">
Expand All @@ -25,6 +31,7 @@ export default class UserCustomPrefsMapLocation extends Component {
<div class="controls location-selector-container">
<LocationSelector
@location={{@outletArgs.model.custom_fields.geo_location}}
@onChangeCallback={{this.updateLocation}}
class="input-xxlarge location-selector"
@searchError={{this.searchError}}
@context={{this.context}}
Expand Down

0 comments on commit 3adafe7

Please # to comment.