2022-11-28 02:00:28 +00:00
|
|
|
import { Clock } from 'lucide-react';
|
2022-11-13 10:29:25 +00:00
|
|
|
|
|
|
|
import { EnvironmentId } from '@/react/portainer/environments/types';
|
|
|
|
|
|
|
|
import { DashboardLink } from '../items/DashboardLink';
|
|
|
|
import { SidebarItem } from '../SidebarItem';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
environmentId: EnvironmentId;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function NomadSidebar({ environmentId }: Props) {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<DashboardLink
|
|
|
|
environmentId={environmentId}
|
|
|
|
platformPath="nomad"
|
|
|
|
data-cy="nomadSidebar-dashboard"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<SidebarItem
|
|
|
|
to="nomad.jobs"
|
|
|
|
params={{ endpointId: environmentId }}
|
|
|
|
icon={Clock}
|
|
|
|
label="Nomad Jobs"
|
|
|
|
data-cy="nomadSidebar-jobs"
|
|
|
|
/>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|