webui: copy apikey to clipboard button (#12884)

This commit is contained in:
Salvatore Catroppa
2022-01-26 21:03:00 +01:00
committed by GitHub
parent d006150627
commit f84f492d43
2 changed files with 11 additions and 1 deletions

View File

@@ -1367,6 +1367,13 @@ function bindUIButtons() {
return false;
});
$('#api-key-copy-button').click(function () {
var apiKey = api.key;
if (apiKey !== null || apiKey !== undefined) {
copyToClipboard(apiKey);
}
});
$('#jackett-add-indexer').click(function () {
$("#modals").empty();
displayUnconfiguredIndexersList();