Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Jan 7, 2025
1 parent 0bccb91 commit d9c02c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 2 additions & 3 deletions keep-ui/app/(keep)/incidents/[id]/incident-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ export function IncidentHeader({
{incident.incident_type == "topology" && (
<Badge
color="blue"
size="sm"
className="cursor-pointer"
size="xs"
icon={TbTopologyStar3}
tooltip="Based on Topology correlation"
tooltip="Created by topology correlation"
>
Topology
</Badge>
Expand Down
10 changes: 7 additions & 3 deletions keep-ui/components/navbar/IncidentLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ import { MdFlashOn } from "react-icons/md";
import clsx from "clsx";

type IncidentsLinksProps = { session: Session | null };
const SHOW_N_INCIDENTS = 3;

export const IncidentsLinks = ({ session }: IncidentsLinksProps) => {
const isNOCRole = session?.userRole === "noc";
const { data: incidents, mutate } = useIncidents();
const { data: incidents, mutate } = useIncidents(
true,
25,
0,
{ id: "creation_time", desc: false },
{}
);
usePollIncidents(mutate);
const currentPath = usePathname();

if (isNOCRole) {
return null;
Expand Down

0 comments on commit d9c02c4

Please sign in to comment.