Disabled broadcasting
This commit is contained in:
parent
c01132c788
commit
7ee555a120
2 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
App.messages = App.cable.subscriptions.create('NotificationsChannel', {
|
||||
received: function (data) {
|
||||
|
||||
if (window.location.href.indexOf('backoffice') !== -1) {
|
||||
$("#notification_alert").html(data['message']);
|
||||
|
||||
slideIn_notification_alert();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ class Notification < ActiveRecord::Base
|
|||
|
||||
# def broadcast_notification
|
||||
# ActionCable.server.broadcast 'notifications',
|
||||
# message: "Nouveau commentaire posté sur le dossier #{self.dossier.id}"
|
||||
# message: "Dossier n°#{self.dossier.id} : #{self.liste.last}",
|
||||
# dossier: {id: self.dossier.id}
|
||||
# end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue