ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit ad67e99bcbd542f0fc70ffbd104e32058a79452b
parent fee5f96cc1af628aa490beccce98de1b7ba7e43b
Author: Milan Pässler <me@pbb.lc>
Date: Wed, 22 Jul 2020 23:00:35 +0200

journeyView: refresh button as spinner
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/client/js/journeyView.js b/client/js/journeyView.js
@@ -216,7 +216,7 @@ export const journeyView = async (match) => {
 const reloadJourney = async (reqId, journeyId) => {
 	document.querySelector('.reload').classList.add('spinning');
 	try {
-		let request = await get("/refreshJourney", {"reqId": reqId, "journeyId": journeyId});
+		let request = await get("/refreshJourney", {"reqId": reqId, "journeyId": journeyId}, true);
 		addCache('journeys', request);
 		journeyView([reqId, journeyId]);
 	} catch(err) {
diff --git a/client/style.css b/client/style.css
@@ -78,6 +78,9 @@ header {
 	height: 120px;
 	animation: spin 2s linear infinite;
 }
+.spinning {
+	animation: spin 2s linear infinite;
+}
 
 @keyframes spin {
 	0% { transform: rotate(0deg); }