Compare commits

..

No commits in common. "5b2546fdbce07ee6441737991c9198f2d3adefa4" and "02a382a99a867f41b5ffb24f7906601f6782827e" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -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;
}
}

View File

@ -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){