Compare commits
No commits in common. "5b2546fdbce07ee6441737991c9198f2d3adefa4" and "02a382a99a867f41b5ffb24f7906601f6782827e" have entirely different histories.
5b2546fdbc
...
02a382a99a
@ -68,17 +68,13 @@ public class TrangaSettings
|
|||||||
if (values.Length != 2)
|
if (values.Length != 2)
|
||||||
return;
|
return;
|
||||||
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(Gotify));
|
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(Gotify));
|
||||||
Gotify newGotify = new(values[0], values[1], logger);
|
notificationManagers.Add(new Gotify(values[0], values[1], logger));
|
||||||
notificationManagers.Add(newGotify);
|
|
||||||
newGotify.SendNotification("Success!", "Gotify was added to Tranga!");
|
|
||||||
break;
|
break;
|
||||||
case UpdateField.LunaSea:
|
case UpdateField.LunaSea:
|
||||||
if(values.Length != 1)
|
if(values.Length != 1)
|
||||||
return;
|
return;
|
||||||
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(LunaSea));
|
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(LunaSea));
|
||||||
LunaSea newLunaSea = new(values[0], logger);
|
notificationManagers.Add(new LunaSea(values[0], logger));
|
||||||
notificationManagers.Add(newLunaSea);
|
|
||||||
newLunaSea.SendNotification("Success!", "LunaSea was added to Tranga!");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -303,6 +303,7 @@ function GetSettingsClick(){
|
|||||||
settingApiUri.placeholder = apiUri;
|
settingApiUri.placeholder = apiUri;
|
||||||
|
|
||||||
GetSettings().then(json => {
|
GetSettings().then(json => {
|
||||||
|
console.log(json);
|
||||||
settingDownloadLocation.innerText = json.downloadLocation;
|
settingDownloadLocation.innerText = json.downloadLocation;
|
||||||
json.libraryManagers.forEach(lm => {
|
json.libraryManagers.forEach(lm => {
|
||||||
if(lm.libraryType == 0){
|
if(lm.libraryType == 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user