Feature: Sync reading progress from Kobo in-built reader (#1541)
* feat: add kobo reading progress sync * fix: remove old variable references * fix: avoid changing koreader behaviour * fix: resolve typo in koreader progress * fix: remove link between booklore progress and kobo sync progress * feat: add unit tests for kobo reading status sync * fix: remove unnecessary conversion value for kobo progress * fix: resolve issue with kobo_progress beiong optional in template * fix: update entitlement to provide existing reading progress back to kobo on sync * fix: use stored bookmark before creating new bookmark * fix: update default thresholds to full numbers. kobo doesn't report progress with any decimal places * chore: update unit tests * fix: remove decimal places in kobo settings progress threshold
This commit is contained in:
+22
@@ -364,6 +364,28 @@
|
||||
</span>
|
||||
</p>
|
||||
}
|
||||
@if (book?.koboProgress && book.koboProgress?.percentage != null) {
|
||||
<p class="whitespace-nowrap flex items-center">
|
||||
<span class="font-bold mr-2">Kobo Progress:</span>
|
||||
<span class="inline-flex items-center">
|
||||
<app-tag size="3xs" variant="pill" [color]="getKoProgressColor(book.koboProgress?.percentage)">
|
||||
{{ book.koboProgress?.percentage | number:'1.0-1' }}%
|
||||
</app-tag>
|
||||
@if (book.koboProgress?.percentage !== null) {
|
||||
<p-button
|
||||
pTooltip="Reset progress"
|
||||
tooltipPosition="bottom"
|
||||
icon="pi pi-refresh"
|
||||
size="small"
|
||||
severity="danger"
|
||||
text
|
||||
class="ml-1 custom-button-padding"
|
||||
(onClick)="resetProgress(book, ResetProgressTypes.KOBO)">
|
||||
</p-button>
|
||||
}
|
||||
</span>
|
||||
</p>
|
||||
}
|
||||
@if (selectedReadStatus === ReadStatus.READ) {
|
||||
<div>
|
||||
@if (book?.dateFinished) {
|
||||
|
||||
Reference in New Issue
Block a user