From 1a4833f873ff9c8c6f27593e190f4ebfdd4ce749 Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 29 Sep 2022 18:06:13 -0500 Subject: [PATCH] Add:Chapter editor lookup chapters and apply titles only #991 --- client/pages/audiobook/_id/chapters.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index c20a7d7f..f97c83f9 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -142,8 +142,11 @@

Chapter start is after the end of your audiobook

-
- Apply Names Only +
+ Map Chapter Titles + + info +
Apply Chapters
@@ -389,7 +392,16 @@ export default { this.$toast.error('Failed to update chapters') }) }, - applyChapterNamesOnly() {}, + applyChapterNamesOnly() { + this.newChapters.forEach((chapter, index) => { + if (this.chapterData.chapters[index]) { + chapter.title = this.chapterData.chapters[index].title + } + }) + + this.showFindChaptersModal = false + this.chapterData = null + }, applyChapterData() { var index = 0 this.newChapters = this.chapterData.chapters