Преглед изворни кода

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>
                 </li>
             {{/each}}
             {{/each}}
         </ul>
         </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>
     </div>