From 6b1bf71344e2555b76cee3d58d4748fa0a31f661 Mon Sep 17 00:00:00 2001
From: Jakob Moser <moser@cl.uni-heidelberg.de>
Date: Wed, 26 Jun 2024 09:57:56 +0200
Subject: [PATCH] Move unlock out of navbar to keep it shorter

---
 portal/static/js/components/pages/Unlock.mjs | 2 +-
 portal/static/js/components/pieces/Nav.mjs   | 7 -------
 portal/static/js/model/services.mjs          | 1 +
 3 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/portal/static/js/components/pages/Unlock.mjs b/portal/static/js/components/pages/Unlock.mjs
index 81efb88..4a258e2 100644
--- a/portal/static/js/components/pages/Unlock.mjs
+++ b/portal/static/js/components/pages/Unlock.mjs
@@ -8,7 +8,7 @@ export const Unlock = {
         return m(
             Base,
             m("article.box", [
-                m("h1", "Zugriff auf Dienste freischalten"),
+                m("h1", "Zugriff auf FS-Dienste freischalten"),
                 m("h2", [
                     m("i.fa-regular.fa-envelope"),
                     " Tickets, ",
diff --git a/portal/static/js/components/pieces/Nav.mjs b/portal/static/js/components/pieces/Nav.mjs
index ba3181e..33680a7 100644
--- a/portal/static/js/components/pieces/Nav.mjs
+++ b/portal/static/js/components/pieces/Nav.mjs
@@ -47,13 +47,6 @@ export const Nav = {
                                 label: "Uni-Dienste",
                             }),
                         ),
-                        m(
-                            "li",
-                            m(NavPageLink, {
-                                href: "/unlock",
-                                label: "Freischalten",
-                            }),
-                        ),
                     ]),
                 ),
                 m(
diff --git a/portal/static/js/model/services.mjs b/portal/static/js/model/services.mjs
index 24f53f7..4c4e735 100644
--- a/portal/static/js/model/services.mjs
+++ b/portal/static/js/model/services.mjs
@@ -34,6 +34,7 @@ export const services = [
         "CL-Account",
         true,
     ),
+    new Service("Freischalten", "/unlock", "fa-solid fa-lock"),
     new Service(
         "Passwort-Vault",
         "https://bitwarden.stura.uni-heidelberg.de",
-- 
GitLab