浏览代码

Made add song to queue button redirect to login page.

KrisVos130 8 年之前
父节点
当前提交
c228ec8742
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      app/client/templates/communityStation.html

+ 5 - 1
app/client/templates/communityStation.html

@@ -122,7 +122,11 @@
                 </li>
             {{/each}}
         </ul>
-        <a id="add-song-to-queue-button" class="waves-effect waves-light btn musare white-text" href="#add-song-to-queue">Add song to queue</a>
+        {{#if currentUser}}
+            <a id="add-song-to-queue-button" class="waves-effect waves-light btn musare white-text" href="#add-song-to-queue">Add a song to the queue</a>
+        {{else}}
+            <a class="waves-effect waves-light btn musare white-text" href="/login" target="_blank">Log in to add a song to the queue</a>
+        {{/if}}
     </div>