New: Add option to only monitor selected book when adding single book

This commit is contained in:
ta264
2021-11-14 21:28:58 +00:00
parent a1c2986af8
commit 33e5351add
8 changed files with 63 additions and 75 deletions

View File

@@ -7,6 +7,11 @@ function getNewBook(book, payload) {
if (!('id' in book.author) || book.author.id === 0) {
getNewAuthor(book.author, payload);
if (payload.monitor === 'specificBook') {
delete book.author.addOptions.monitor;
book.author.addOptions.booksToMonitor = [book.foreignBookId];
}
}
book.addOptions = {