mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
feat(edge/templates): introduce edge app templates [EE-6209] (#10480)
This commit is contained in:
parent
95d96e1164
commit
e1e90c9c1d
58 changed files with 1142 additions and 365 deletions
|
@ -1,10 +1,11 @@
|
|||
import { Box, Clock, LayoutGrid, Layers, Puzzle } from 'lucide-react';
|
||||
import { Box, Clock, LayoutGrid, Layers, Puzzle, Edit } from 'lucide-react';
|
||||
|
||||
import { isBE } from '../portainer/feature-flags/feature-flags.service';
|
||||
import { useSettings } from '../portainer/settings/queries';
|
||||
|
||||
import { SidebarItem } from './SidebarItem';
|
||||
import { SidebarSection } from './SidebarSection';
|
||||
import { SidebarParent } from './SidebarItem/SidebarParent';
|
||||
|
||||
export function EdgeComputeSidebar() {
|
||||
// this sidebar is rendered only for admins, so we can safely assume that settingsQuery will succeed
|
||||
|
@ -52,6 +53,26 @@ export function EdgeComputeSidebar() {
|
|||
data-cy="portainerSidebar-edgeDevicesWaitingRoom"
|
||||
/>
|
||||
)}
|
||||
<SidebarParent
|
||||
icon={Edit}
|
||||
label="Templates"
|
||||
to="edge.templates"
|
||||
data-cy="edgeSidebar-templates"
|
||||
>
|
||||
<SidebarItem
|
||||
label="Application"
|
||||
to="edge.templates"
|
||||
ignorePaths={['edge.templates.custom']}
|
||||
isSubMenu
|
||||
data-cy="edgeSidebar-appTemplates"
|
||||
/>
|
||||
{/* <SidebarItem
|
||||
label="Custom"
|
||||
to="edge.templates.custom"
|
||||
isSubMenu
|
||||
data-cy="edgeSidebar-customTemplates"
|
||||
/> */}
|
||||
</SidebarParent>
|
||||
</SidebarSection>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue