From ad67e99bcbd542f0fc70ffbd104e32058a79452b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Wed, 22 Jul 2020 23:00:35 +0200 Subject: [PATCH] journeyView: refresh button as spinner --- client/js/journeyView.js | 2 +- client/style.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/js/journeyView.js b/client/js/journeyView.js index 8d0da64..9ab0c0b 100644 --- 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 index 725f6ce..253a638 100755 --- 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); }