adds profile page

This commit is contained in:
Christian Beutel
2024-11-03 15:13:25 +01:00
parent 0d8ff5c83b
commit bab22301af
31 changed files with 882 additions and 133 deletions

View File

@@ -18,6 +18,7 @@
];
const dropdownItems = [
{ text: $_("profile"), value: "profile", icon: "user" },
{ text: $_("settings"), value: "settings", icon: "cog" },
{ text: $_("logout"), value: "logout", icon: "right-from-bracket" },
];
@@ -76,7 +77,9 @@
});
function handleDropdownClick(item: { text: string; value: any }) {
if (item.value == "logout") {
if (item.value == "profile") {
goto("/profile");
} else if (item.value == "logout") {
logout();
window.location.href = "/";
} else if (item.value == "settings") {