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:
commit
42caebf458
@ -168,6 +168,11 @@ function ChangeStyleSheet(sheet){
|
|||||||
PostData(uri);
|
PostData(uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function RefreshLibraryMetadata() {
|
||||||
|
var uri = `${apiUri}/Jobs/UpdateMetadata`;
|
||||||
|
PostData(uri);
|
||||||
|
}
|
||||||
|
|
||||||
function UpdateKomga(komgaUrl, komgaAuth){
|
function UpdateKomga(komgaUrl, komgaAuth){
|
||||||
var uri = `${apiUri}/LibraryConnectors/Update?libraryConnector=Komga&komgaUrl=${komgaUrl}&komgaAuth=${komgaAuth}`;
|
var uri = `${apiUri}/LibraryConnectors/Update?libraryConnector=Komga&komgaUrl=${komgaUrl}&komgaAuth=${komgaAuth}`;
|
||||||
PostData(uri);
|
PostData(uri);
|
||||||
|
@ -104,6 +104,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<input type="submit" value="Update" onclick="UpdateSettings()">
|
<input type="submit" value="Update" onclick="UpdateSettings()">
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="submit" value="Refresh Library Metadata" style="width: fit-content;"onclick="RefreshLibraryMetadata()">
|
||||||
|
</div>
|
||||||
</popup-content>
|
</popup-content>
|
||||||
</popup-window>
|
</popup-window>
|
||||||
</popup>
|
</popup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user