Merge branch 'release/0.11.7-6'
This commit is contained in:
@@ -1107,6 +1107,7 @@ class Reader {
|
|||||||
wasOpened = (wasOpened ? _.cloneDeep(wasOpened) : {});
|
wasOpened = (wasOpened ? _.cloneDeep(wasOpened) : {});
|
||||||
|
|
||||||
wasOpened = Object.assign(wasOpened, {
|
wasOpened = Object.assign(wasOpened, {
|
||||||
|
url: (opts.url !== undefined ? opts.url : wasOpened.url),
|
||||||
path: (opts.path !== undefined ? opts.path : wasOpened.path),
|
path: (opts.path !== undefined ? opts.path : wasOpened.path),
|
||||||
bookPos: (opts.bookPos !== undefined ? opts.bookPos : wasOpened.bookPos),
|
bookPos: (opts.bookPos !== undefined ? opts.bookPos : wasOpened.bookPos),
|
||||||
bookPosSeen: (opts.bookPos !== undefined ? opts.bookPos : wasOpened.bookPosSeen),
|
bookPosSeen: (opts.bookPos !== undefined ? opts.bookPos : wasOpened.bookPosSeen),
|
||||||
|
|||||||
@@ -317,6 +317,11 @@ class RecentBooksPage {
|
|||||||
const author = (bt.author ? bt.author : (bt.bookTitle ? bt.bookTitle : (book.uploadFileName ? book.uploadFileName : book.url)));
|
const author = (bt.author ? bt.author : (bt.bookTitle ? bt.bookTitle : (book.uploadFileName ? book.uploadFileName : book.url)));
|
||||||
|
|
||||||
result.push({
|
result.push({
|
||||||
|
key: book.key,
|
||||||
|
url: book.url,
|
||||||
|
path: book.path,
|
||||||
|
deleted: book.deleted,
|
||||||
|
|
||||||
touchTime,
|
touchTime,
|
||||||
loadTime,
|
loadTime,
|
||||||
desc: {
|
desc: {
|
||||||
@@ -326,10 +331,7 @@ class RecentBooksPage {
|
|||||||
textLen,
|
textLen,
|
||||||
},
|
},
|
||||||
readPart,
|
readPart,
|
||||||
url: book.url,
|
|
||||||
path: book.path,
|
|
||||||
fullTitle: bt.fullTitle,
|
fullTitle: bt.fullTitle,
|
||||||
key: book.key,
|
|
||||||
sameBookKey: book.sameBookKey,
|
sameBookKey: book.sameBookKey,
|
||||||
active: (activeBook.key == book.key),
|
active: (activeBook.key == book.key),
|
||||||
activeParent: false,
|
activeParent: false,
|
||||||
@@ -433,6 +435,8 @@ class RecentBooksPage {
|
|||||||
//.....
|
//.....
|
||||||
|
|
||||||
this.tableData = result;
|
this.tableData = result;
|
||||||
|
|
||||||
|
this.$refs.virtualScroll.refresh();
|
||||||
} finally {
|
} finally {
|
||||||
this.lock.ret();
|
this.lock.ret();
|
||||||
}
|
}
|
||||||
@@ -501,8 +505,14 @@ class RecentBooksPage {
|
|||||||
this.$root.notify.info('Восстановлено из архива');
|
this.$root.notify.info('Восстановлено из архива');
|
||||||
}
|
}
|
||||||
|
|
||||||
loadBook(row) {
|
async loadBook(item) {
|
||||||
this.$emit('load-book', {url: row.url, path: row.path});
|
//чтобы не обновлять лишний раз updateTableData
|
||||||
|
this.inited = false;
|
||||||
|
|
||||||
|
if (item.deleted)
|
||||||
|
await this.handleRestore(item.key);
|
||||||
|
|
||||||
|
this.$emit('load-book', {url: item.url, path: item.path});
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user