From 118924aa76a8033a0d58c6cb14de609886cca0b4 Mon Sep 17 00:00:00 2001 From: minie4 Date: Sun, 1 May 2022 21:03:34 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Allow=20entering=20custon=20substit?= =?UTF-8?q?ution=20filter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store.js b/src/store.js index c4f7a84..801d089 100644 --- a/src/store.js +++ b/src/store.js @@ -9,6 +9,9 @@ export const timetableClass = ref( ); watch(substitutionFilter, (newValue) => { + if (newValue == "other") { + newValue = prompt("Please enter a class to filter (e.g. 9C)"); + } localStorage.setItem("substitutionFilter", newValue); }); watch(timetableClass, (newValue) => {