diff --git a/public/js/more-info.js b/public/js/more-info.js index c2314f9..e59d840 100644 --- a/public/js/more-info.js +++ b/public/js/more-info.js @@ -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() { 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}`; diff --git a/src/Controllers/GeoserverController.php b/src/Controllers/GeoserverController.php index a7edec5..c7aeb38 100644 --- a/src/Controllers/GeoserverController.php +++ b/src/Controllers/GeoserverController.php @@ -38,4 +38,10 @@ class GeoserverController { readfile($url); } + + + public function createUser() { + return 0; + } + }