mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
feat(notifications): track toast notifications [EE-4132] (#7711)
* feat(notifications): track toast notifications [EE-4132] * suggested refactoring * fix failing test * remove duplicate styles * applying spacing to context icon
This commit is contained in:
parent
4e20d70a99
commit
648c1db437
18 changed files with 608 additions and 59 deletions
|
@ -5,6 +5,7 @@ import {
|
|||
HardDrive,
|
||||
Radio,
|
||||
FileText,
|
||||
Bell,
|
||||
} from 'react-feather';
|
||||
|
||||
import { usePublicSettings } from '@/react/portainer/settings/queries';
|
||||
|
@ -113,50 +114,57 @@ export function SettingsSidebar({ isAdmin, isTeamLeader }: Props) {
|
|||
data-cy="portainerSidebar-activityLogs"
|
||||
/>
|
||||
</SidebarItem>
|
||||
|
||||
<SidebarItem
|
||||
to="portainer.settings"
|
||||
label="Settings"
|
||||
icon={Settings}
|
||||
data-cy="portainerSidebar-settings"
|
||||
>
|
||||
{!window.ddExtension && (
|
||||
<SidebarItem
|
||||
to="portainer.settings.authentication"
|
||||
label="Authentication"
|
||||
data-cy="portainerSidebar-authentication"
|
||||
/>
|
||||
)}
|
||||
{process.env.PORTAINER_EDITION !== 'CE' && (
|
||||
<SidebarItem
|
||||
to="portainer.settings.cloud"
|
||||
label="Cloud"
|
||||
data-cy="portainerSidebar-cloud"
|
||||
/>
|
||||
)}
|
||||
<SidebarItem
|
||||
to="portainer.settings.edgeCompute"
|
||||
label="Edge Compute"
|
||||
data-cy="portainerSidebar-edgeCompute"
|
||||
/>
|
||||
|
||||
<SidebarItem.Wrapper label="Help / About">
|
||||
<a
|
||||
href={
|
||||
process.env.PORTAINER_EDITION === 'CE'
|
||||
? 'https://www.portainer.io/community_help'
|
||||
: 'https://documentation.portainer.io/r/business-support'
|
||||
}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="px-3 rounded flex h-8 items-center"
|
||||
>
|
||||
Help / About
|
||||
</a>
|
||||
</SidebarItem.Wrapper>
|
||||
</SidebarItem>
|
||||
</>
|
||||
)}
|
||||
<SidebarItem
|
||||
to="portainer.notifications"
|
||||
icon={Bell}
|
||||
label="Notifications"
|
||||
data-cy="portainerSidebar-notifications"
|
||||
/>
|
||||
{isAdmin && (
|
||||
<SidebarItem
|
||||
to="portainer.settings"
|
||||
label="Settings"
|
||||
icon={Settings}
|
||||
data-cy="portainerSidebar-settings"
|
||||
>
|
||||
{!window.ddExtension && (
|
||||
<SidebarItem
|
||||
to="portainer.settings.authentication"
|
||||
label="Authentication"
|
||||
data-cy="portainerSidebar-authentication"
|
||||
/>
|
||||
)}
|
||||
{process.env.PORTAINER_EDITION !== 'CE' && (
|
||||
<SidebarItem
|
||||
to="portainer.settings.cloud"
|
||||
label="Cloud"
|
||||
data-cy="portainerSidebar-cloud"
|
||||
/>
|
||||
)}
|
||||
<SidebarItem
|
||||
to="portainer.settings.edgeCompute"
|
||||
label="Edge Compute"
|
||||
data-cy="portainerSidebar-edgeCompute"
|
||||
/>
|
||||
|
||||
<SidebarItem.Wrapper label="Help / About">
|
||||
<a
|
||||
href={
|
||||
process.env.PORTAINER_EDITION === 'CE'
|
||||
? 'https://www.portainer.io/community_help'
|
||||
: 'https://documentation.portainer.io/r/business-support'
|
||||
}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="px-3 rounded flex h-8 items-center"
|
||||
>
|
||||
Help / About
|
||||
</a>
|
||||
</SidebarItem.Wrapper>
|
||||
</SidebarItem>
|
||||
)}
|
||||
</SidebarSection>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue