瀏覽代碼

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

KrisVos130 9 年之前
父節點
當前提交
5039a25451
共有 1 個文件被更改,包括 2 次插入0 次删除
  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-content">
                         <div class="modal-body">
                         <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>
                             <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>
                             <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>
                             <h3 class="text-primary"><b>Reporting:</b> {{reportingSong.title}} by {{reportingSong.artist}}</h3>