Browse Source

fix chart error in alpine moreinfo

master
o.moresis 2 years ago
parent
commit
0ac68a39a8
  1. 4
      public/js/more-info.js
  2. 6
      src/Controllers/GeoserverController.php

4
public/js/more-info.js

@ -97,6 +97,8 @@ function moreInfo() { @@ -97,6 +97,8 @@ function moreInfo() {
}).render(grid);
},
drawDataChart() {
if (this.entityGroup !== 'POSEIDON')
return;
Alpine.store('entity').params.split(' ').forEach((param, idx) => {
this.addCheckbox(param, idx);
});
@ -104,8 +106,6 @@ function moreInfo() { @@ -104,8 +106,6 @@ function moreInfo() {
this.lineChart = {};
var ctx = document.getElementById('data-chart').getContext('2d');
// Alpine.store('loading', true);
// if (this.entityGroup != 'POSEIDON')
// return;
console.debug('fetching...');
console.debug(Alpine.store('entity').params);
const url = `/data/external/POSEIDON/${Alpine.store('entity').tspr}_${Alpine.store('entity').type}_${Alpine.store('entity').pid}`;

6
src/Controllers/GeoserverController.php

@ -38,4 +38,10 @@ class GeoserverController { @@ -38,4 +38,10 @@ class GeoserverController {
readfile($url);
}
public function createUser() {
return 0;
}
}

Loading…
Cancel
Save