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:
Ondřej Hruška
2017-07-14 17:03:43 +02:00
committed by beatrix
parent 6ce806f913
commit 75aafc932e
13 changed files with 192 additions and 23 deletions

View File

@@ -175,7 +175,7 @@ Rails.application.routes.draw do
end
end
resources :notifications, only: [:index, :show] do
resources :notifications, only: [:index, :show, :destroy] do
collection do
post :clear
post :dismiss