Skip to content

Commit

Permalink
'Manage this event' link presets the right bundle tab and configurati…
Browse files Browse the repository at this point in the history
…on tab
  • Loading branch information
radekkaluzik committed Jun 13, 2024
1 parent 5b5ce55 commit c4743bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/NotificationsDrawer/NotificationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ const NotificationItem: React.FC<NotificationItemProps> = ({ notification, onNav

const notificationDropdownItems = [
<DropdownItem key="read" onClick={onCheckboxToggle}>{`Mark as ${!notification.read ? 'read' : 'unread'}`}</DropdownItem>,
<DropdownItem key="manage-event" onClick={() => onNavigateTo('settings/notifications/configure-events')}>
<DropdownItem
key="manage-event"
onClick={() => onNavigateTo(`settings/notifications/configure-events?bundle=${notification.bundle}&activeTab=configuration`)}
>
Manage this event
</DropdownItem>,
];
Expand Down
1 change: 1 addition & 0 deletions src/redux/store.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type NotificationData = {
read: boolean;
source: string;
created: string;
bundle: string;
};

export type Notifications = {
Expand Down

0 comments on commit c4743bc

Please sign in to comment.