Added button to settings pop-up to refresh library metadata through POST request

This commit is contained in:
db-2001 2023-11-02 14:28:28 -04:00
parent c315237d64
commit 4cd06bd0e0
2 changed files with 8 additions and 0 deletions

View File

@ -168,6 +168,11 @@ function ChangeStyleSheet(sheet){
PostData(uri);
}
function RefreshLibraryMetadata() {
var uri = `${apiUri}/Jobs/UpdateMetadata`;
PostData(uri);
}
function UpdateKomga(komgaUrl, komgaAuth){
var uri = `${apiUri}/LibraryConnectors/Update?libraryConnector=Komga&komgaUrl=${komgaUrl}&komgaAuth=${komgaAuth}`;
PostData(uri);

View File

@ -104,6 +104,9 @@
<div>
<input type="submit" value="Update" onclick="UpdateSettings()">
</div>
<div>
<input type="submit" value="Refresh Library Metadata" style="width: fit-content;"onclick="RefreshLibraryMetadata()">
</div>
</popup-content>
</popup-window>
</popup>