fix(webui): don't reload series card thumbnail on every book update

to avoid flicker during analysis
This commit is contained in:
Gauthier Roebroeck 2022-02-04 11:08:10 +08:00
parent 288858cf64
commit 8bd36b45af

View file

@ -289,7 +289,7 @@ export default Vue.extend({
methods: {
thumbnailBookChanged(event: ThumbnailBookSseDto) {
if (event.selected && (this.computedItem.type() === ItemTypes.BOOK && event.bookId === this.item.id)
|| (this.computedItem.type() === ItemTypes.SERIES && event.seriesId === this.item.id)
|| (this.thumbnailError && this.computedItem.type() === ItemTypes.SERIES && event.seriesId === this.item.id)
) {
this.thumbnailCacheBust = '?' + this.$_.random(1000)
}