From 199e9712aacbfd6e46c13a81296a0e346e40a078 Mon Sep 17 00:00:00 2001 From: tetsuyaaoi Date: Tue, 20 Jul 2021 14:17:05 -0300 Subject: [PATCH] fix theme drop-down's duplicated options problem --- views/preferences.pug | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/views/preferences.pug b/views/preferences.pug index f0bb5ce..32388b6 100644 --- a/views/preferences.pug +++ b/views/preferences.pug @@ -34,22 +34,22 @@ html select(id="theme", name="theme") if(!user_preferences.theme || user_preferences.theme === 'auto') option(value="auto", selected="selected") Auto - option(value="") White + option(value="white") White option(value="dark") Dark option(value="sepia") Sepia - if(user_preferences.theme == '') + if(user_preferences.theme == 'white') option(value="auto") Auto - option(value="", selected="selected") White + option(value="white", selected="selected") White option(value="dark") Dark option(value="sepia") Sepia if(user_preferences.theme === 'dark') option(value="auto") Auto - option(value="") White + option(value="white") White option(value="dark", selected="selected") Dark option(value="sepia") Sepia if(user_preferences.theme === 'sepia') option(value="auto") Auto - option(value="") White + option(value="white") White option(value="dark") Dark option(value="sepia", selected="selected") Sepia .setting