Merge pull request #33 from db-2001/update-library-metadat

Added button to settings pop-up to refresh library metadata through POST request
This commit is contained in:
Glax 2023-11-03 09:56:36 +01:00 committed by GitHub
commit 42caebf458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>