added Server Configuration option to top right dropdown

This commit is contained in:
Oliver Bryan
2026-01-01 02:27:27 +00:00
parent a9bbb30285
commit 2bd73d01d5

View File

@@ -9,6 +9,7 @@ import LogOutButton from "@/components/log-out-button";
import { OrganisationSelect } from "@/components/organisation-select";
import { ProjectSelect } from "@/components/project-select";
import SmallUserDisplay from "@/components/small-user-display";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
@@ -19,6 +20,7 @@ import {
} from "@/components/ui/dropdown-menu";
import { ResizablePanel, ResizablePanelGroup, ResizableSeparator } from "@/components/ui/resizable";
import { issue, organisation, project } from "@/lib/server";
import { ServerConfigurationDialog } from "./components/server-configuration-dialog";
function Index() {
const user = JSON.parse(localStorage.getItem("user") || "{}") as UserRecord;
@@ -219,6 +221,19 @@ function Index() {
My Organisations
</Link>
</DropdownMenuItem>
<DropdownMenuItem asChild className="flex items-end justify-end">
<ServerConfigurationDialog
trigger={
<Button
variant="ghost"
className="flex w-full gap-2 items-center justify-end text-end px-2 py-1 m-0 h-auto"
title="Server Configuration"
>
Server Configuration
</Button>
}
/>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem className="flex items-end justify-end p-0 m-0">
<LogOutButton noStyle className={"flex w-full justify-end"} />