Added stream URL to channel settings.

This commit is contained in:
rainbow napkin 2025-05-10 22:07:20 -04:00
parent e4bebce431
commit 93265b7890
6 changed files with 92 additions and 14 deletions

View file

@ -20,7 +20,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
<% Object.keys(channel.settings).forEach((key) => { %>
<span class="admin-list-field-container">
<label class="admin-list-label"><%- key %>:</label>
<input id=<%- `channel-preference-${key}` %> class="channel-preference-list-item" type="checkbox" <% if(channel.settings[key]){ %> checked <% } %>>
<% switch(typeof channel.settings[key]){
case "string": %>
<input id=<%- `channel-preference-${key}` %> class="channel-preference-list-item" value="<%- channel.settings[key] %>">
<% break;
default: %>
<input id=<%- `channel-preference-${key}` %> class="channel-preference-list-item" type="checkbox" <% if(channel.settings[key]){ %> checked <% } %>>
<% break;
} %>
</span>
<% }); %>
</form>