Skip to content

Commit

Permalink
Separated Coordinate Handling (#243)
Browse files Browse the repository at this point in the history
* seperated coordinates and other data from each other
* improved how entries are formatted

Co-authored-by: octycs <octycs@users.noreply.github.com>
  • Loading branch information
CommanderStorm and octycs committed Jan 5, 2023
1 parent feb3c56 commit ccc4bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webclient/src/components/DetailsFeedbackButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ function _getFeedbackBody(currentEdits) {
let editStr = "";
Object.entries(currentEdits).forEach(([key, value]) => {
editStr += `"${key}": {coords: {lat: ${value.coords.lat}, lon: ${value.coords.lon}}}\n`;
editStr += `"${key}": { lat: ${value.coords.lat}, lon: ${value.coords.lon} }\n`;
});
return `${actionMsg}\n\`\`\`\n${editStr}\n\`\`\``;
return `${actionMsg}\n\`\`\`yaml\n${editStr}\`\`\``;
}
defineExpose({
Expand Down

0 comments on commit ccc4bb7

Please sign in to comment.