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)
|
||||
return;
|
||||
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(Gotify));
|
||||
Gotify newGotify = new(values[0], values[1], logger);
|
||||
notificationManagers.Add(newGotify);
|
||||
newGotify.SendNotification("Success!", "Gotify was added to Tranga!");
|
||||
notificationManagers.Add(new Gotify(values[0], values[1], logger));
|
||||
break;
|
||||
case UpdateField.LunaSea:
|
||||
if(values.Length != 1)
|
||||
return;
|
||||
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(LunaSea));
|
||||
LunaSea newLunaSea = new(values[0], logger);
|
||||
notificationManagers.Add(newLunaSea);
|
||||
newLunaSea.SendNotification("Success!", "LunaSea was added to Tranga!");
|
||||
notificationManagers.Add(new LunaSea(values[0], logger));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -303,6 +303,7 @@ function GetSettingsClick(){
|
||||
settingApiUri.placeholder = apiUri;
|
||||
|
||||
GetSettings().then(json => {
|
||||
console.log(json);
|
||||
settingDownloadLocation.innerText = json.downloadLocation;
|
||||
json.libraryManagers.forEach(lm => {
|
||||
if(lm.libraryType == 0){
|
||||
|
Loading…
Reference in New Issue
Block a user