mirror of
https://github.com/9p4/jellyfin-plugin-sso.git
synced 2026-08-07 05:15:02 -04:00
Text and JSON fields can now be emptied in configuration
This commit is contained in:
1 parent
ef085e9fa3
commit
2d6e2fc938
1 file changed
+11
-2
@@ -301,12 +301,21 @@ const ssoConfigurationPage = {
|
||||
|
||||
form_elements.text_fields.forEach((id) => {
|
||||
const value = page.querySelector("#" + id).value;
|
||||
if (value) current_config[id] = page.querySelector("#" + id).value;
|
||||
if (value) {
|
||||
current_config[id] = page.querySelector("#" + id).value
|
||||
} else {
|
||||
current_config[id] = null;
|
||||
}
|
||||
});
|
||||
|
||||
form_elements.json_fields.forEach((id) => {
|
||||
const value = page.querySelector("#" + id).value;
|
||||
if (value) current_config[id] = JSON.parse(value);
|
||||
if (value) {
|
||||
current_config[id] = JSON.parse(value)
|
||||
}
|
||||
else {
|
||||
current_config[id] = null;
|
||||
}
|
||||
});
|
||||
|
||||
form_elements.check_fields.forEach((id) => {
|
||||
|
||||
Reference in new issue
Block a user