mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-02 10:22:09 +00:00
Update frontend.
This commit is contained in:
@@ -80,12 +80,12 @@ export default {
|
||||
},
|
||||
created() {
|
||||
if (null === this.value || typeof this.value === 'undefined') {
|
||||
axios.get('./api/v1/configuration/static/firefly.default_location').then(response => {
|
||||
this.zoom = parseInt(response.data['firefly.default_location'].zoom_level);
|
||||
axios.get('./api/v1/configuration/firefly.default_location').then(response => {
|
||||
this.zoom = parseInt(response.data.data.value.zoom_level);
|
||||
this.center =
|
||||
[
|
||||
parseFloat(response.data['firefly.default_location'].latitude),
|
||||
parseFloat(response.data['firefly.default_location'].longitude),
|
||||
parseFloat(response.data.data.value.latitude),
|
||||
parseFloat(response.data.data.value.longitude),
|
||||
]
|
||||
;
|
||||
});
|
||||
|
Reference in New Issue
Block a user