about summary refs log tree commit diff stats
path: root/src/pages/options/widgets
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2023-02-05 12:34:06 +0300
committerManeraKai <manerakai@protonmail.com>2023-02-05 12:34:06 +0300
commitfff96565f7647ccebfb05b4fa2de96ea1cb99213 (patch)
tree0826becc9cc5c01154d93620052d9bbad0fc19da /src/pages/options/widgets
parentAdded BiblioReads https://github.com/libredirect/libredirect/issues/524 (diff)
downloadlibredirect-fff96565f7647ccebfb05b4fa2de96ea1cb99213.zip
Re-added wikiless https://github.com/libredirect/libredirect/issues/612. Fixed UI bug in settings
Diffstat (limited to 'src/pages/options/widgets')
-rw-r--r--src/pages/options/widgets/services.pug16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/pages/options/widgets/services.pug b/src/pages/options/widgets/services.pug
index 257ffd7c..e23aa08e 100644
--- a/src/pages/options/widgets/services.pug
+++ b/src/pages/options/widgets/services.pug
@@ -16,17 +16,15 @@ each val, service in services
                 h4(data-localise="__MSG_showInPopup__") Show in popup
                 input(id=service type="checkbox")
 
-            if Object.keys(services[service].frontends).length> 1
-                div(class="some-block option-block")
-                    h4
-                        a(class="frontend_name" target="_blank" data-localise="__MSG_frontend__") Frontend
-                    select(id=service+"-frontend")
+            div(class="some-block option-block")
+                h4
+                    a(class="frontend_name" target="_blank" data-localise="__MSG_frontend__") Frontend
+                select(id=service+"-frontend")
+                    if Object.keys(services[service].frontends).length> 1
                         each val, frontend in services[service].frontends
                             option(value=frontend)=services[service].frontends[frontend].name
-            else 
-                div(class="some-block option-block")
-                    h4
-                        a(class="frontend_name" target="_blank" data-localise="__MSG_frontend__") Frontend
+                    else
+                        option(value=frontend)=Object.values(services[service].frontends)[0].name
 
             if services[service].embeddable
                 div(class="some-block option-block")