1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-05-26 12:32:25 +00:00

Add local fetch option

This commit is contained in:
Cadence Ember 2020-10-26 20:29:05 +13:00
parent f78ee4ff0f
commit 9a890574d5
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
7 changed files with 107 additions and 45 deletions

View file

@ -20,7 +20,7 @@ mixin select(id, description, disabled, options)
label.description(for=id)= description
select(id=id name=id disabled=disabled).border-look
each option in options
option(value=option.value selected=(option.value === settings[id]))= option.text
option(value=option.value selected=(option.value == settings[id]))= option.text
block head
title Settings - CloudTube
@ -38,9 +38,14 @@ block content
])
+select("save_history", "Watch history", false, [
{value: "", text: "Don't save"},
{value: "yes", text: "Save"}
{value: "0", text: "Don't save"},
{value: "1", text: "Save"}
])
+select("local", "Fetch videos", false, [
{value: "0", text: "Remote instance"},
{value: "1", text: "Locally"}
])
.save-settings
button.border-look Save
button.border-look Save