From 0ac68a39a8dc8fc00b8adfaf8c06036faeca7ade Mon Sep 17 00:00:00 2001 From: Orestis Moresis Date: Fri, 10 Feb 2023 13:09:59 +0200 Subject: [PATCH] fix chart error in alpine moreinfo --- public/js/more-info.js | 4 ++-- src/Controllers/GeoserverController.php | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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; + } + }