From 38572a3a46ce84b126b37c025f90fa0947be2545 Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 22 Apr 2024 21:53:12 +0200 Subject: [PATCH] Fixes https://github.com/C9Glax/tranga/issues/171 Overwrites for settingsg that weren't changed on the frontend. --- Website/interaction.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Website/interaction.js b/Website/interaction.js index 5133e19..5d35ac0 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -560,8 +560,8 @@ function OpenSettings(){ GetSettings().then((json) => { //console.log(json); - settingApiUri.value = apiUri; - settingUserAgent.value = json.userAgent; + settingApiUri.placeholder = apiUri; + settingUserAgent.placeholder = json.userAgent; //console.log(json.styleSheet); }); GetRateLimits().then((json) => { @@ -578,15 +578,15 @@ function OpenSettings(){ switch(libraryConnectorTypes[connector.libraryType]){ case "Kavita": settingKavitaConfigured.setAttribute("configuration", "Active"); - settingKavitaUrl.value = connector.baseUrl; - settingKavitaUser.value = "***"; - settingKavitaPass.value = "***"; + settingKavitaUrl.placeholder = connector.baseUrl; + settingKavitaUser.placeholder = "***"; + settingKavitaPass.placeholder = "***"; break; case "Komga": settingKomgaConfigured.setAttribute("configuration", "Active"); - settingKomgaUrl.value = connector.baseUrl; - settingKomgaUser.value = "***"; - settingKomgaPass.value = "***"; + settingKomgaUrl.placeholder = connector.baseUrl; + settingKomgaUser.placeholder = "***"; + settingKomgaPass.placeholder = "***"; break; default: console.log("Unknown type"); @@ -599,18 +599,18 @@ function OpenSettings(){ json.forEach(connector => { switch(notificationConnectorTypes[connector.notificationConnectorType]){ case "Gotify": - settingGotifyUrl.value = connector.endpoint; - settingGotifyAppToken.value = "***"; + settingGotifyUrl.placeholder = connector.endpoint; + settingGotifyAppToken.placeholder = "***"; settingGotifyConfigured.setAttribute("configuration", "Active"); break; case "LunaSea": settingLunaseaConfigured.setAttribute("configuration", "Active"); - settingLunaseaWebhook.value = connector.id; + settingLunaseaWebhook.placeholder = connector.id; break; case "Ntfy": settingNtfyConfigured.setAttribute("configuration", "Active"); - settingNtfyEndpoint.value = connector.endpoint; - settingNtfyAuth.value = "***"; + settingNtfyEndpoint.placeholder = connector.endpoint; + settingNtfyAuth.placeholder = "***"; break; default: console.log("Unknown type");