From a553cfeea1301a29152d86c1e793e4375f5f233c Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Mon, 4 Jul 2022 08:48:09 +0200 Subject: [PATCH 1/2] get running status before manually adding an entry --- lib/Controller/AjaxController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Controller/AjaxController.php b/lib/Controller/AjaxController.php index b064743..42a1f69 100644 --- a/lib/Controller/AjaxController.php +++ b/lib/Controller/AjaxController.php @@ -456,7 +456,8 @@ public function addWorkInterval() { } $this->workIntervalMapper->insert($wi); - + $running = $this->workIntervalMapper->findAllRunning($this->userId); + return new JSONResponse(["WorkIntervals" => json_decode(json_encode($running), true)]); } From f11f47ad2010ee7c3f4602b5f5701cafcab6fc09 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Mon, 4 Jul 2022 09:52:05 +0200 Subject: [PATCH 2/2] bump version --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index e36e28f..df0326a 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -35,7 +35,7 @@ Mit dem integrierten Dashboard lässt sich anhand eines Kuchen-/Donut-Diagramms Diese App wird aktuell noch weiterentwickelt, also: Augen offen halten für neue Features! Und falls Dir irgendwelche Verbesserungsvorschläge, Probleme oder neue Features einfallen, schau mal auf unserem [GitHub Projekt](https://github.com/mtierltd/timetracker) vorbei, vielleicht wird Dein Thema bereits diskutiert! Und falls nicht, starte gerne eine neue Diskussion, wir freuen uns auf Dein Feedback! - 0.0.74 + 0.0.75 agpl MTier Ltd. TimeTracker