forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
8109c13b38
commit
297bb1c498
185 changed files with 2826 additions and 5874 deletions
|
|
@ -225,13 +225,17 @@ export class UserMapFeatureswitchState extends WithUserRelatedState {
|
|||
this.geolocationControl.handleClick()
|
||||
})
|
||||
|
||||
Hotkeys.RegisterHotkey({ nomod: "H" }, Translations.t.hotkeyDocumentation.homeLocation, () => {
|
||||
const home = this.userRelatedState.osmConnection.userDetails.data?.home
|
||||
if (!home) {
|
||||
console.log("No home location set")
|
||||
Hotkeys.RegisterHotkey(
|
||||
{ nomod: "H" },
|
||||
Translations.t.hotkeyDocumentation.homeLocation,
|
||||
() => {
|
||||
const home = this.userRelatedState.osmConnection.userDetails.data?.home
|
||||
if (!home) {
|
||||
console.log("No home location set")
|
||||
}
|
||||
this.mapProperties.location.set(home)
|
||||
}
|
||||
this.mapProperties.location.set(home)
|
||||
})
|
||||
)
|
||||
|
||||
Hotkeys.RegisterHotkey(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue