Disabled broadcasting

This commit is contained in:
Xavier J 2016-12-27 15:05:19 +01:00
parent c01132c788
commit 7ee555a120
2 changed files with 3 additions and 2 deletions

View file

@ -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();
}
}

View file

@ -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