From eb85ee4d35efb6bab278611efd16d5296e6935b5 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 2 Feb 2023 10:34:22 +0000 Subject: [PATCH] add option to auto redirect to jellyfin (or given link) if enabled (General>Auto redirect on success), the user will not have to click "continue" on the form or creation success page and will insted be redirected. For #242. --- config/config-base.json | 1 + html/form.html | 3 ++ ts/form.ts | 10 ++++-- views.go | 79 ++++++++++++++++++++++------------------- 4 files changed, 55 insertions(+), 38 deletions(-) diff --git a/config/config-base.json b/config/config-base.json index 492180d..52b277a 100644 --- a/config/config-base.json +++ b/config/config-base.json @@ -272,6 +272,7 @@ "requires_restart": true, "type": "bool", "value": false, + "advanced": true, "description": "Navigate directly to the above URL instead of needing the user to click \"Continue\"." } } diff --git a/html/form.html b/html/form.html index c26b01a..635d5a5 100644 --- a/html/form.html +++ b/html/form.html @@ -8,6 +8,9 @@ {{ else }} {{ .strings.pageTitle }} {{ end }} +