From 3adafe7b27e16de6c58f66c36b2b3b81b8a40276 Mon Sep 17 00:00:00 2001 From: merefield Date: Mon, 27 Jan 2025 09:38:07 +0000 Subject: [PATCH] Update User Location selector to use new scheme --- .../connectors/user-custom-preferences/map-location.gjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/javascripts/discourse/connectors/user-custom-preferences/map-location.gjs b/assets/javascripts/discourse/connectors/user-custom-preferences/map-location.gjs index bd801fe..41b53d4 100644 --- a/assets/javascripts/discourse/connectors/user-custom-preferences/map-location.gjs +++ b/assets/javascripts/discourse/connectors/user-custom-preferences/map-location.gjs @@ -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; + } +