From 40488b74f2d57c213284241020eb0e7a26a14083 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sat, 31 Dec 2016 06:15:55 +0000 Subject: [PATCH] make todo comments clear --- app/channels/map_channel.rb | 2 +- frontend/src/Metamaps/Cable.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/channels/map_channel.rb b/app/channels/map_channel.rb index 8f6ee77a..deb810b0 100644 --- a/app/channels/map_channel.rb +++ b/app/channels/map_channel.rb @@ -2,7 +2,7 @@ class MapChannel < ApplicationCable::Channel # Called when the consumer has successfully # become a subscriber of this channel. def subscribed - # verify permission + # TODO: verify permission stream_from "map_#{params[:id]}" end end \ No newline at end of file diff --git a/frontend/src/Metamaps/Cable.js b/frontend/src/Metamaps/Cable.js index eefeef51..8cb64717 100644 --- a/frontend/src/Metamaps/Cable.js +++ b/frontend/src/Metamaps/Cable.js @@ -87,7 +87,7 @@ const Cable = { } }, synapseUpdated: event => { - // handle case where permission changed + // TODO: handle case where permission changed var synapse = DataModel.Synapses.get(event.id) if (synapse) { // edge reset necessary because fetch causes model reset @@ -169,7 +169,7 @@ const Cable = { } }, topicUpdated: event => { - // handle case where permission changed + // TODO: handle case where permission changed var topic = DataModel.Topics.get(event.id) if (topic) { var node = topic.get('node')