feat(webreader): do not always show reading direction pop

do not show the reading direction popup if the one from the book is the same as the current

closes #151
This commit is contained in:
Gauthier Roebroeck 2020-05-08 16:42:51 +08:00
parent 32170d4d69
commit dc7dc75e31

View file

@ -573,9 +573,11 @@ export default Vue.extend({
case ReadingDirection.LEFT_TO_RIGHT:
case ReadingDirection.RIGHT_TO_LEFT:
case ReadingDirection.VERTICAL:
// bypass setter so cookies aren't set
this.settings.readingDirection = this.book.metadata.readingDirection
this.snackReadingDirection = true
if (this.readingDirection !== this.book.metadata.readingDirection) {
// bypass setter so cookies aren't set
this.settings.readingDirection = this.book.metadata.readingDirection
this.snackReadingDirection = true
}
break
}