This commit is contained in:
DCCONSTRUCTIONS
2026-04-20 17:57:08 +03:00
parent 47d379e77f
commit 5b2a2fc104
5 changed files with 44 additions and 8 deletions
@@ -74,8 +74,8 @@ export function AuthHeaderBase(props: TAuthHeaderBase) {
<div className="sticky top-0 flex w-full flex-shrink-0 items-center justify-between gap-6 px-2 py-1">
<Link href="/">
<PlaneLockup
height={84}
width={402}
height={31}
width={148}
className="nodedc-auth-logo-lockup text-primary transition-opacity hover:opacity-90"
/>
</Link>
@@ -6,7 +6,7 @@
import { useRef, useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { useParams, usePathname } from "next/navigation";
// plane imports
import { EUserPermissions, EUserPermissionsLevel, SIDEBAR_TRACKER_ELEMENTS } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
@@ -31,6 +31,7 @@ export const SidebarQuickActions = observer(function SidebarQuickActions() {
const timeoutRef = useRef<any>();
// router
const { workspaceSlug: routerWorkspaceSlug } = useParams();
const pathname = usePathname();
const workspaceSlug = routerWorkspaceSlug?.toString();
// store hooks
const { toggleCreateIssueModal } = useCommandPalette();
@@ -45,6 +46,9 @@ export const SidebarQuickActions = observer(function SidebarQuickActions() {
);
const disabled = joinedProjectIds.length === 0 || !canCreateIssue;
const workspaceDraftIssue = workspaceSlug ? (storedValue?.[workspaceSlug] ?? undefined) : undefined;
const effectivePathname =
pathname || (typeof window !== "undefined" ? window.location.pathname : undefined);
const isExternalContoursRoute = effectivePathname?.includes("/external-contours");
const handleMouseEnter = () => {
// if enter before time out clear the timeout
@@ -67,6 +71,8 @@ export const SidebarQuickActions = observer(function SidebarQuickActions() {
return Promise.resolve();
};
if (isExternalContoursRoute) return null;
return (
<>
<CreateUpdateIssueModal