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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user