Remove register button when there are no sonos devices (#39)

This commit is contained in:
Simon J
2021-08-31 22:03:44 +10:00
committed by GitHub
parent 0f8c45cd03
commit f045867554
4 changed files with 226 additions and 140 deletions

View File

@@ -6,10 +6,15 @@
<h3><%= it.lang("expectedConfig") %></h3>
<div><%= JSON.stringify(it.bonobService) %></div>
<br/>
<% if(it.devices.length > 0) { %>
<form action="<%= it.createRegistrationRoute %>" method="POST">
<input type="submit" value="<%= it.lang("register") %>">
</form>
<br/>
<% } else { %>
<h3><%= it.lang("noSonosDevices") %></h3>
<br/>
<% } %>
<% if(it.registeredBonobService) { %>
<h3><%= it.lang("existingServiceConfig") %></h3>