Browse Source

Made report previous song button disapear if there is no previous song. Closes #33.

KrisVos130 9 years ago
parent
commit
5039a25451
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/client/templates/room.html

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

@@ -184,7 +184,9 @@
                     <div class="modal-content">
                         <div class="modal-body">
 
+                            {{#if previousSongR}}
                             <button type="button" id="report-prev" class="btn btn-warning btn-lg btn-block">Report previous song ({{previousSongR.title}})</button>
+                            {{/if}}
                             <button type="button" id="report-curr" class="btn btn-warning btn-lg btn-block" disabled>Report current song ({{currentSongR.title}})</button>
 
                             <h3 class="text-primary"><b>Reporting:</b> {{reportingSong.title}} by {{reportingSong.artist}}</h3>