Added buttons and menu items to dismiss individual notifications (#76)
* Added DELETE verb for notifications * Added notification dismiss button to status dropdown * Added reveal-on-hover notif dismiss button, added FollowNotification component
This commit is contained in:
@@ -50,6 +50,7 @@ import {
|
||||
} from '../../../mastodon/actions/statuses';
|
||||
import { initReport } from '../../../mastodon/actions/reports';
|
||||
import { openModal } from '../../../mastodon/actions/modal';
|
||||
import { deleteNotification } from '../../../mastodon/actions/notifications';
|
||||
|
||||
// Our imports //
|
||||
import Status from '.';
|
||||
@@ -245,6 +246,9 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
|
||||
}
|
||||
},
|
||||
|
||||
onDeleteNotification (id) {
|
||||
dispatch(deleteNotification(id));
|
||||
},
|
||||
});
|
||||
|
||||
export default injectIntl(
|
||||
|
Reference in New Issue
Block a user