feat: add web component to settings for api logs download (#627)

* feat: add web component to settings for api logs download

* feat: version check before offering unraid-api-logs downloader

* refactor: show download log component

* style: code indenting fix

* feat: translations download unraid-api logs
This commit is contained in:
Zack Spear
2023-04-27 13:06:20 -07:00
committed by GitHub
parent a265a2181f
commit 8918d5ac8c
2 changed files with 10 additions and 0 deletions

View File

@@ -697,3 +697,10 @@ $(function() {
});
</script>
<?endif // end show flash backup form ?>
<!-- start unraid-api section -->
<div markdown="1" class="js-unraidApiLogs <?=$shade?>">
_(Download unraid-api Logs)_:
: <unraid-api-logs></unraid-api-logs>
</div>
<!-- end unraid-api section -->

View File

@@ -539,6 +539,9 @@ $upc_translations = [
'heading' => _('Connect plugin install failed'),
'message' => _('The Connect plugin install is incomplete').'. '._('Please uninstall and reinstall the Connect plugin').'. '._('Be sure to let the install complete before you close the window').'.',
],
"downloadUnraidApiLogs" => _('Download unraid-api Logs'),
"download" => _('Download'),
"pleaseWait" => _('Please wait…')
],
];
// note: $myservers variable defined in myservers1.php, by parsing myservers.cfg