Add the OPDS settings to the settings page

The Book Downloads card has an "Enable OPDS" box. In the proxy mode, it
also shows the user name for the reader and a field to set the OPDS
password. The field is grey until the box is checked. Disabled text
fields now look grey.
This commit is contained in:
tim
2026-10-03 11:23:28 +02:00
parent 28cd0dcde9
commit 3662372c38
4 changed files with 241 additions and 5 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ test('the download template loads, lists its fields, and saves the stored form',
api.on('PUT', 'settings', { download_template: '{title} - {authors}', download_date_format: '%b, %Y' });
await click(card, 'Save');
assert.deepEqual(api.sent('PUT', 'settings')[0].body, {
download_template: ' {title} - {authors} ', download_date_format: '',
opds_enabled: false, download_template: ' {title} - {authors} ', download_date_format: '',
});
assert.equal(field(main, 'download-template').value, '{title} - {authors}');
assert.equal(field(main, 'download-date-format').value, '%b, %Y');