From 8685a27148f7694cf7a1e4a05d75faed47a0860b Mon Sep 17 00:00:00 2001
From: Otto Visser <O.W.Visser@tudelft.nl>
Date: Tue, 15 Sep 2020 09:34:36 +0200
Subject: [PATCH] use display method instead of isOpen method to determine
 whether button should be visible

Signed-off-by: Otto Visser <O.W.Visser@tudelft.nl>
---
 src/main/resources/templates/request/list.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/resources/templates/request/list.html b/src/main/resources/templates/request/list.html
index 44438e00b..7c74f6fcc 100644
--- a/src/main/resources/templates/request/list.html
+++ b/src/main/resources/templates/request/list.html
@@ -50,7 +50,7 @@
             <div class="float-right btn-toolbar">
                 <form th:each="lab : ${activeLabs}" th:action="@{'/requests/next/' + ${lab.id}}"
                       class="float-right" style="padding-right:2px;" method="POST">
-                    <button type="submit" class="btn btn-sm btn-primary" th:if="${lab.isOpen()}"
+                    <button type="submit" class="btn btn-sm btn-primary" th:if="${lab.display()}"
                             th:classappend="${queued.get(lab.id) == 0} ? disabled : ''">Get next for
                         [[${lab.course.code}]] [[${lab.toString()}]] (<span th:id="${'span-' + lab.id}">[[${queued.get(lab.id)}]]</span>)
                     </button>
-- 
GitLab