diff --git a/client/components/app/MediaPlayerContainer.vue b/client/components/app/MediaPlayerContainer.vue index 989fc062da..61b10ba85c 100644 --- a/client/components/app/MediaPlayerContainer.vue +++ b/client/components/app/MediaPlayerContainer.vue @@ -55,7 +55,7 @@ @showPlayerQueueItems="showPlayerQueueItemsModal = true" /> - + diff --git a/client/components/modals/BookmarksModal.vue b/client/components/modals/BookmarksModal.vue index 08d800f0d2..5c43d024bb 100644 --- a/client/components/modals/BookmarksModal.vue +++ b/client/components/modals/BookmarksModal.vue @@ -5,24 +5,26 @@

{{ $strings.LabelYourBookmarks }}

-
-
+
+
-
-

{{ $strings.MessageNoBookmarks }}

-
-
-
-
+
+
+

{{ $strings.MessageNoBookmarks }}

+
+ +
+ +

- {{ this.$secondsToTimestamp(currentTime) }} + {{ this.$secondsToTimestamp(currentTime / playbackRate) }}

- +
add
@@ -45,6 +47,7 @@ export default { default: 0 }, libraryItemId: String, + playbackRate: Number, hideCreate: Boolean }, data() { @@ -57,6 +60,7 @@ export default { watch: { show(newVal) { if (newVal) { + this.selectedBookmark = null this.showBookmarkTitleInput = false this.newBookmarkTitle = '' } @@ -72,7 +76,7 @@ export default { } }, canCreateBookmark() { - return !this.bookmarks.find((bm) => bm.time === this.currentTime) + return !this.bookmarks.find((bm) => Math.abs(this.currentTime - bm.time) < 1) }, dateFormat() { return this.$store.state.serverSettings.dateFormat @@ -102,19 +106,6 @@ export default { clickBookmark(bm) { this.$emit('select', bm) }, - submitUpdateBookmark(updatedBookmark) { - var bookmark = { ...updatedBookmark } - this.$axios - .$patch(`/api/me/item/${this.libraryItemId}/bookmark`, bookmark) - .then(() => { - this.$toast.success(this.$strings.ToastBookmarkUpdateSuccess) - }) - .catch((error) => { - this.$toast.error(this.$strings.ToastFailedToUpdate) - console.error(error) - }) - this.show = false - }, submitCreateBookmark() { if (!this.newBookmarkTitle) { this.newBookmarkTitle = this.$formatDatetime(Date.now(), this.dateFormat, this.timeFormat) diff --git a/client/components/modals/bookmarks/BookmarkItem.vue b/client/components/modals/bookmarks/BookmarkItem.vue index 1be3894a4c..538d3115f3 100644 --- a/client/components/modals/bookmarks/BookmarkItem.vue +++ b/client/components/modals/bookmarks/BookmarkItem.vue @@ -1,8 +1,8 @@ diff --git a/client/strings/bg.json b/client/strings/bg.json index b6aff28854..086407bd1d 100644 --- a/client/strings/bg.json +++ b/client/strings/bg.json @@ -725,7 +725,6 @@ "ToastBookmarkCreateFailed": "Неуспешно създаване на отметка", "ToastBookmarkCreateSuccess": "Отметката е създадена", "ToastBookmarkRemoveSuccess": "Отметката е премахната", - "ToastBookmarkUpdateSuccess": "Отметката е обновена", "ToastChaptersHaveErrors": "Главите имат грешки", "ToastChaptersMustHaveTitles": "Главите трябва да имат заглавия", "ToastCollectionRemoveSuccess": "Колекцията е премахната", diff --git a/client/strings/bn.json b/client/strings/bn.json index fe758a0c80..2d5929bec5 100644 --- a/client/strings/bn.json +++ b/client/strings/bn.json @@ -952,7 +952,6 @@ "ToastBookmarkCreateFailed": "বুকমার্ক তৈরি করতে ব্যর্থ", "ToastBookmarkCreateSuccess": "বুকমার্ক যোগ করা হয়েছে", "ToastBookmarkRemoveSuccess": "বুকমার্ক সরানো হয়েছে", - "ToastBookmarkUpdateSuccess": "বুকমার্ক আপডেট করা হয়েছে", "ToastCachePurgeFailed": "ক্যাশে পরিষ্কার করতে ব্যর্থ হয়েছে", "ToastCachePurgeSuccess": "ক্যাশে সফলভাবে পরিষ্কার করা হয়েছে", "ToastChaptersHaveErrors": "অধ্যায়ে ত্রুটি আছে", diff --git a/client/strings/ca.json b/client/strings/ca.json index 56981f5777..7abbfc81e9 100644 --- a/client/strings/ca.json +++ b/client/strings/ca.json @@ -898,7 +898,6 @@ "ToastBookmarkCreateFailed": "Error en crear marcador", "ToastBookmarkCreateSuccess": "Marcador afegit", "ToastBookmarkRemoveSuccess": "Marcador eliminat", - "ToastBookmarkUpdateSuccess": "Marcador actualitzat", "ToastCachePurgeFailed": "Error en purgar la memòria cau", "ToastCachePurgeSuccess": "Memòria cau purgada amb èxit", "ToastChaptersHaveErrors": "Els capítols tenen errors", diff --git a/client/strings/cs.json b/client/strings/cs.json index ac14437dea..3844b048ae 100644 --- a/client/strings/cs.json +++ b/client/strings/cs.json @@ -947,7 +947,6 @@ "ToastBookmarkCreateFailed": "Vytvoření záložky se nezdařilo", "ToastBookmarkCreateSuccess": "Přidána záložka", "ToastBookmarkRemoveSuccess": "Záložka odstraněna", - "ToastBookmarkUpdateSuccess": "Záložka aktualizována", "ToastCachePurgeFailed": "Nepodařilo se vyčistit mezipaměť", "ToastCachePurgeSuccess": "Vyrovnávací paměť úspěšně vyčištěna", "ToastChaptersHaveErrors": "Kapitoly obsahují chyby", diff --git a/client/strings/da.json b/client/strings/da.json index d9c510af48..5cde1b12e8 100644 --- a/client/strings/da.json +++ b/client/strings/da.json @@ -636,7 +636,6 @@ "ToastBookmarkCreateFailed": "Mislykkedes oprettelse af bogmærke", "ToastBookmarkCreateSuccess": "Bogmærke tilføjet", "ToastBookmarkRemoveSuccess": "Bogmærke fjernet", - "ToastBookmarkUpdateSuccess": "Bogmærke opdateret", "ToastChaptersHaveErrors": "Kapitler har fejl", "ToastChaptersMustHaveTitles": "Kapitler skal have titler", "ToastCollectionRemoveSuccess": "Samling fjernet", diff --git a/client/strings/de.json b/client/strings/de.json index 77554af2a7..72ce083c70 100644 --- a/client/strings/de.json +++ b/client/strings/de.json @@ -953,7 +953,6 @@ "ToastBookmarkCreateFailed": "Lesezeichen konnte nicht erstellt werden", "ToastBookmarkCreateSuccess": "Lesezeichen hinzugefügt", "ToastBookmarkRemoveSuccess": "Lesezeichen entfernt", - "ToastBookmarkUpdateSuccess": "Lesezeichen aktualisiert", "ToastCachePurgeFailed": "Cache leeren fehlgeschlagen", "ToastCachePurgeSuccess": "Cache geleert", "ToastChaptersHaveErrors": "Kapitel sind fehlerhaft", diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 61478bb2df..37a3aae3e8 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -954,7 +954,6 @@ "ToastBookmarkCreateFailed": "Failed to create bookmark", "ToastBookmarkCreateSuccess": "Bookmark added", "ToastBookmarkRemoveSuccess": "Bookmark removed", - "ToastBookmarkUpdateSuccess": "Bookmark updated", "ToastCachePurgeFailed": "Failed to purge cache", "ToastCachePurgeSuccess": "Cache purged successfully", "ToastChaptersHaveErrors": "Chapters have errors", diff --git a/client/strings/es.json b/client/strings/es.json index 6cae35a8a6..f1199055db 100644 --- a/client/strings/es.json +++ b/client/strings/es.json @@ -953,7 +953,6 @@ "ToastBookmarkCreateFailed": "Error al crear marcador", "ToastBookmarkCreateSuccess": "Marcador Agregado", "ToastBookmarkRemoveSuccess": "Marcador eliminado", - "ToastBookmarkUpdateSuccess": "Marcador actualizado", "ToastCachePurgeFailed": "Error al purgar el caché", "ToastCachePurgeSuccess": "Caché purgado de manera exitosa", "ToastChaptersHaveErrors": "Los capítulos tienen errores", diff --git a/client/strings/et.json b/client/strings/et.json index bb1b0182e4..a2af994285 100644 --- a/client/strings/et.json +++ b/client/strings/et.json @@ -709,7 +709,6 @@ "ToastBookmarkCreateFailed": "Järjehoidja loomine ebaõnnestus", "ToastBookmarkCreateSuccess": "Järjehoidja lisatud", "ToastBookmarkRemoveSuccess": "Järjehoidja eemaldatud", - "ToastBookmarkUpdateSuccess": "Järjehoidja värskendatud", "ToastChaptersHaveErrors": "Peatükkidel on vigu", "ToastChaptersMustHaveTitles": "Peatükkidel peab olema pealkiri", "ToastCollectionRemoveSuccess": "Kogum eemaldatud", diff --git a/client/strings/fr.json b/client/strings/fr.json index 544bcc9bcb..a2e461246c 100644 --- a/client/strings/fr.json +++ b/client/strings/fr.json @@ -944,7 +944,6 @@ "ToastBookmarkCreateFailed": "Échec de la création de signet", "ToastBookmarkCreateSuccess": "Signet ajouté", "ToastBookmarkRemoveSuccess": "Signet supprimé", - "ToastBookmarkUpdateSuccess": "Signet mis à jour", "ToastCachePurgeFailed": "Échec de la purge du cache", "ToastCachePurgeSuccess": "Cache purgé avec succès", "ToastChaptersHaveErrors": "Les chapitres contiennent des erreurs", diff --git a/client/strings/he.json b/client/strings/he.json index 1bc87ace96..ba64c53906 100644 --- a/client/strings/he.json +++ b/client/strings/he.json @@ -740,7 +740,6 @@ "ToastBookmarkCreateFailed": "יצירת סימניה נכשלה", "ToastBookmarkCreateSuccess": "הסימניה נוספה בהצלחה", "ToastBookmarkRemoveSuccess": "הסימניה הוסרה בהצלחה", - "ToastBookmarkUpdateSuccess": "הסימניה עודכנה בהצלחה", "ToastChaptersHaveErrors": "פרקים מכילים שגיאות", "ToastChaptersMustHaveTitles": "פרקים חייבים לכלול כותרות", "ToastCollectionRemoveSuccess": "האוסף הוסר בהצלחה", diff --git a/client/strings/hr.json b/client/strings/hr.json index 524d0d4fc5..19e2f16aa5 100644 --- a/client/strings/hr.json +++ b/client/strings/hr.json @@ -953,7 +953,6 @@ "ToastBookmarkCreateFailed": "Izrada knjižne oznake nije uspjela", "ToastBookmarkCreateSuccess": "Knjižna oznaka dodana", "ToastBookmarkRemoveSuccess": "Knjižna oznaka uklonjena", - "ToastBookmarkUpdateSuccess": "Knjižna oznaka ažurirana", "ToastCachePurgeFailed": "Čišćenje predmemorije nije uspjelo", "ToastCachePurgeSuccess": "Predmemorija uspješno očišćena", "ToastChaptersHaveErrors": "Poglavlja imaju pogreške", diff --git a/client/strings/hu.json b/client/strings/hu.json index 6bf908a3fb..a65bba23b0 100644 --- a/client/strings/hu.json +++ b/client/strings/hu.json @@ -949,7 +949,6 @@ "ToastBookmarkCreateFailed": "Könyvjelző létrehozása sikertelen", "ToastBookmarkCreateSuccess": "Könyvjelző hozzáadva", "ToastBookmarkRemoveSuccess": "Könyvjelző eltávolítva", - "ToastBookmarkUpdateSuccess": "Könyvjelző frissítve", "ToastCachePurgeFailed": "A gyorsítótár törlése sikertelen", "ToastCachePurgeSuccess": "A gyorsítótár sikeresen törölve", "ToastChaptersHaveErrors": "A fejezetek hibákat tartalmaznak", diff --git a/client/strings/it.json b/client/strings/it.json index 1fdb3ac5f7..a8f4c3296b 100644 --- a/client/strings/it.json +++ b/client/strings/it.json @@ -941,7 +941,6 @@ "ToastBookmarkCreateFailed": "Creazione segnalibro fallita", "ToastBookmarkCreateSuccess": "Segnalibro creato", "ToastBookmarkRemoveSuccess": "Segnalibro Rimosso", - "ToastBookmarkUpdateSuccess": "Segnalibro aggiornato", "ToastCachePurgeFailed": "Impossibile eliminare la cache", "ToastCachePurgeSuccess": "Cache eliminata correttamente", "ToastChaptersHaveErrors": "I capitoli contengono errori", diff --git a/client/strings/lt.json b/client/strings/lt.json index 4171814536..f87e037a74 100644 --- a/client/strings/lt.json +++ b/client/strings/lt.json @@ -660,7 +660,6 @@ "ToastBookmarkCreateFailed": "Žymos sukurti nepavyko", "ToastBookmarkCreateSuccess": "Žyma pridėta", "ToastBookmarkRemoveSuccess": "Žyma pašalinta", - "ToastBookmarkUpdateSuccess": "Žyma atnaujinta", "ToastChaptersHaveErrors": "Skyriai turi klaidų", "ToastChaptersMustHaveTitles": "Skyriai turi turėti pavadinimus", "ToastChaptersRemoved": "Skyriai pašalinti", diff --git a/client/strings/nl.json b/client/strings/nl.json index 33e330e1e8..3b9c1968ea 100644 --- a/client/strings/nl.json +++ b/client/strings/nl.json @@ -937,7 +937,6 @@ "ToastBookmarkCreateFailed": "Aanmaken boekwijzer mislukt", "ToastBookmarkCreateSuccess": "boekwijzer toegevoegd", "ToastBookmarkRemoveSuccess": "Boekwijzer verwijderd", - "ToastBookmarkUpdateSuccess": "Boekwijzer bijgewerkt", "ToastCachePurgeFailed": "Cache wissen is mislukt", "ToastCachePurgeSuccess": "Cache succesvol verwijderd", "ToastChaptersHaveErrors": "Hoofdstukken bevatten fouten", diff --git a/client/strings/no.json b/client/strings/no.json index 7e1f8aafc7..f35fca21ac 100644 --- a/client/strings/no.json +++ b/client/strings/no.json @@ -904,7 +904,6 @@ "ToastBookmarkCreateFailed": "Misslykkes å opprette bokmerke", "ToastBookmarkCreateSuccess": "Bokmerke lagt til", "ToastBookmarkRemoveSuccess": "Bokmerke fjernet", - "ToastBookmarkUpdateSuccess": "Bokmerke oppdatert", "ToastCachePurgeFailed": "Kunne ikke å slette mellomlager", "ToastCachePurgeSuccess": "Mellomlager slettet", "ToastChaptersHaveErrors": "Kapittel har feil", diff --git a/client/strings/pl.json b/client/strings/pl.json index 927c14f9d0..9a81578161 100644 --- a/client/strings/pl.json +++ b/client/strings/pl.json @@ -771,7 +771,6 @@ "ToastBookmarkCreateFailed": "Nie udało się utworzyć zakładki", "ToastBookmarkCreateSuccess": "Dodano zakładkę", "ToastBookmarkRemoveSuccess": "Zakładka została usunięta", - "ToastBookmarkUpdateSuccess": "Zaktualizowano zakładkę", "ToastCollectionRemoveSuccess": "Kolekcja usunięta", "ToastCollectionUpdateSuccess": "Zaktualizowano kolekcję", "ToastItemCoverUpdateSuccess": "Zaktualizowano okładkę", diff --git a/client/strings/pt-br.json b/client/strings/pt-br.json index 07a1c79f82..8abbee91cd 100644 --- a/client/strings/pt-br.json +++ b/client/strings/pt-br.json @@ -729,7 +729,6 @@ "ToastBookmarkCreateFailed": "Falha ao criar marcador", "ToastBookmarkCreateSuccess": "Marcador adicionado", "ToastBookmarkRemoveSuccess": "Marcador removido", - "ToastBookmarkUpdateSuccess": "Marcador atualizado", "ToastCachePurgeFailed": "Falha ao apagar o cache", "ToastCachePurgeSuccess": "Cache apagado com sucesso", "ToastChaptersHaveErrors": "Capítulos com erro", diff --git a/client/strings/ru.json b/client/strings/ru.json index f2c3a8c406..716a09ea47 100644 --- a/client/strings/ru.json +++ b/client/strings/ru.json @@ -954,7 +954,6 @@ "ToastBookmarkCreateFailed": "Не удалось создать закладку", "ToastBookmarkCreateSuccess": "Добавлена закладка", "ToastBookmarkRemoveSuccess": "Закладка удалена", - "ToastBookmarkUpdateSuccess": "Закладка обновлена", "ToastCachePurgeFailed": "Не удалось очистить кэш", "ToastCachePurgeSuccess": "Кэш успешно очищен", "ToastChaptersHaveErrors": "Главы имеют ошибки", diff --git a/client/strings/sl.json b/client/strings/sl.json index ece4570b27..835b902038 100644 --- a/client/strings/sl.json +++ b/client/strings/sl.json @@ -954,7 +954,6 @@ "ToastBookmarkCreateFailed": "Zaznamka ni bilo mogoče ustvariti", "ToastBookmarkCreateSuccess": "Zaznamek dodan", "ToastBookmarkRemoveSuccess": "Zaznamek odstranjen", - "ToastBookmarkUpdateSuccess": "Zaznamek posodobljen", "ToastCachePurgeFailed": "Čiščenje predpomnilnika ni uspelo", "ToastCachePurgeSuccess": "Predpomnilnik je bil uspešno očiščen", "ToastChaptersHaveErrors": "Poglavja imajo napake", diff --git a/client/strings/sv.json b/client/strings/sv.json index cc75d43d8a..f7641016ff 100644 --- a/client/strings/sv.json +++ b/client/strings/sv.json @@ -707,7 +707,6 @@ "ToastBookmarkCreateFailed": "Det gick inte att skapa bokmärket", "ToastBookmarkCreateSuccess": "Bokmärket har adderats", "ToastBookmarkRemoveSuccess": "Bokmärket har raderats", - "ToastBookmarkUpdateSuccess": "Bokmärket har uppdaterats", "ToastChaptersHaveErrors": "Kapitlen har fel", "ToastChaptersMustHaveTitles": "Kapitel måste ha titlar", "ToastCollectionRemoveSuccess": "Samlingen har raderats", diff --git a/client/strings/uk.json b/client/strings/uk.json index 1a133fe75f..0d0f889167 100644 --- a/client/strings/uk.json +++ b/client/strings/uk.json @@ -954,7 +954,6 @@ "ToastBookmarkCreateFailed": "Не вдалося створити закладку", "ToastBookmarkCreateSuccess": "Закладку додано", "ToastBookmarkRemoveSuccess": "Закладку видалено", - "ToastBookmarkUpdateSuccess": "Закладку оновлено", "ToastCachePurgeFailed": "Не вдалося очистити кеш", "ToastCachePurgeSuccess": "Кеш очищено", "ToastChaptersHaveErrors": "Глави містять помилки", diff --git a/client/strings/vi-vn.json b/client/strings/vi-vn.json index 07ef1751b1..7ad76b1bd8 100644 --- a/client/strings/vi-vn.json +++ b/client/strings/vi-vn.json @@ -679,7 +679,6 @@ "ToastBookmarkCreateFailed": "Tạo đánh dấu thất bại", "ToastBookmarkCreateSuccess": "Đã thêm đánh dấu", "ToastBookmarkRemoveSuccess": "Đánh dấu đã được xóa", - "ToastBookmarkUpdateSuccess": "Đánh dấu đã được cập nhật", "ToastChaptersHaveErrors": "Các chương có lỗi", "ToastChaptersMustHaveTitles": "Các chương phải có tiêu đề", "ToastCollectionRemoveSuccess": "Bộ sưu tập đã được xóa", diff --git a/client/strings/zh-cn.json b/client/strings/zh-cn.json index fad6fc7afb..d2eeb4dec6 100644 --- a/client/strings/zh-cn.json +++ b/client/strings/zh-cn.json @@ -950,7 +950,6 @@ "ToastBookmarkCreateFailed": "创建书签失败", "ToastBookmarkCreateSuccess": "书签已添加", "ToastBookmarkRemoveSuccess": "书签已删除", - "ToastBookmarkUpdateSuccess": "书签已更新", "ToastCachePurgeFailed": "清除缓存失败", "ToastCachePurgeSuccess": "缓存清除成功", "ToastChaptersHaveErrors": "章节有错误", diff --git a/client/strings/zh-tw.json b/client/strings/zh-tw.json index 3f7e4c9c17..eed8e3bc44 100644 --- a/client/strings/zh-tw.json +++ b/client/strings/zh-tw.json @@ -723,7 +723,6 @@ "ToastBookmarkCreateFailed": "創建書簽失敗", "ToastBookmarkCreateSuccess": "書籤已新增", "ToastBookmarkRemoveSuccess": "書籤已刪除", - "ToastBookmarkUpdateSuccess": "書籤已更新", "ToastChaptersHaveErrors": "章節有錯誤", "ToastChaptersMustHaveTitles": "章節必須有標題", "ToastCollectionRemoveSuccess": "收藏夾已刪除",