Skip to content
Snippets Groups Projects
Verified Commit 3b9c9aad authored by Jakob Moser's avatar Jakob Moser
Browse files

Reformat fiel with prettier

parent b6085d62
No related branches found
No related tags found
1 merge request!12Fix stacking query parameter
This commit is part of merge request !12. Comments created here will be created in the context of that merge request.
import { NavPageLink } from "./NavPageLink.mjs"
import { logout, isLoggedIn } from "../../account.mjs"
const hasQueryParam = (param, path) => (param in m.parsePathname(path).params);
const hasQueryParam = (param, path) => param in m.parsePathname(path).params
export const Nav = {
view() {
......@@ -63,7 +62,9 @@ export const Nav = {
iconOnly: true,
})
: m(NavPageLink, {
href: hasQueryParam("next", m.route.get()) ? m.route.get() : `/login?next=${m.route.get() || "/"}`,
href: hasQueryParam("next", m.route.get())
? m.route.get()
: `/login?next=${m.route.get() || "/"}`,
label: " Anmelden",
icon: "fa-solid fa-right-to-bracket",
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment