diff --git a/imports/plugins/core/orders/client/components/ordersList.js b/imports/plugins/core/orders/client/components/ordersList.js index cbf0f3dd398..e78c8391d2c 100644 --- a/imports/plugins/core/orders/client/components/ordersList.js +++ b/imports/plugins/core/orders/client/components/ordersList.js @@ -52,7 +52,9 @@ class OrdersList extends Component { }); return ( - + ); } diff --git a/imports/plugins/included/notifications/client/components/notificationDropdown.js b/imports/plugins/included/notifications/client/components/notificationDropdown.js index 26ba46090d5..0c8045c4ed9 100644 --- a/imports/plugins/included/notifications/client/components/notificationDropdown.js +++ b/imports/plugins/included/notifications/client/components/notificationDropdown.js @@ -10,6 +10,7 @@ class NotificationDropdown extends Component { this.handleNoNotifications = this.handleNoNotifications.bind(this); this.renderDropdownHead = this.renderDropdownHead.bind(this); this.handleClick = this.handleClick.bind(this); + this.handleClickViewAll = this.handleClickViewAll.bind(this); } handleNoNotifications(notifyArr) { @@ -42,6 +43,11 @@ class NotificationDropdown extends Component { return markOneAsRead(notify._id); } + handleClickViewAll() { + const url = this.prefix + "/notifications"; + Reaction.Router.go(url); + } + renderDropdownHead() { const { notificationList, unread, markAllAsRead } = this.props; return ( @@ -56,7 +62,6 @@ class NotificationDropdown extends Component { render() { const { notificationList } = this.props; - const prefix = this.prefix + "/notifications"; return (