diff --git a/components/fili-info.riot b/components/fili-info.riot index 0d74496..8fe6952 100644 --- a/components/fili-info.riot +++ b/components/fili-info.riot @@ -23,6 +23,7 @@ diff --git a/components/main-controller.riot b/components/main-controller.riot index 3d1ed82..ce8afd7 100644 --- a/components/main-controller.riot +++ b/components/main-controller.riot @@ -5,9 +5,10 @@ + -
+
@@ -25,7 +26,7 @@ this.update({ course: course, - shouldShowInfos: course != null, + shouldShowInfos: course != null }) }, @@ -59,12 +60,21 @@ onMounted(props, state) { this.update({ course: null, + schoolList: [], school: null, - schoolList: null, popupEnabled: false, shouldShowInfos: false }) }, + + clearCache(e) { + localStorage.clear() + e.target.textContent = "Cache vidé !" + + setTimeout(() => { + e.target.textContent = "Vider le cache" + }, 3000) + }, popup(school){ this.update({ school: school, diff --git a/components/school-info.riot b/components/school-info.riot index 938e242..e829578 100644 --- a/components/school-info.riot +++ b/components/school-info.riot @@ -1,5 +1,5 @@ -