瀏覽代碼

Fix

Made it so users that's not logged in that they cant type chat messages
Johand 9 年之前
父節點
當前提交
48c066c630
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/client/templates/room.html

+ 4 - 0
app/client/templates/room.html

@@ -107,7 +107,11 @@
                                 {{/each}}
                             </ul>
                             <div id="chat-input-div">
+                                {{#if currentUser}}
                                 <input id="chat-input" placeholder="Type a message...">
+                            {{else}}
+                                <input id="chat-input" placeholder="Please register and login to chat." disabled>
+                            {{/if}}
                                 <div id="submit"><i id="submit-message" class="fa fa-paper-plane-o"></i>
                             </div>
                         </div>