diff --git a/komga-webui/src/components/dialogs/ReadListEditDialog.vue b/komga-webui/src/components/dialogs/ReadListEditDialog.vue index 92de2b37..94c2eee9 100644 --- a/komga-webui/src/components/dialogs/ReadListEditDialog.vue +++ b/komga-webui/src/components/dialogs/ReadListEditDialog.vue @@ -7,11 +7,23 @@ + + + + + + + + @@ -47,6 +59,7 @@ export default Vue.extend({ readLists: [] as ReadListDto[], form: { name: '', + summary: '', }, } }, @@ -90,6 +103,7 @@ export default Vue.extend({ methods: { async dialogReset(readList: ReadListDto) { this.form.name = readList.name + this.form.summary = readList.summary }, dialogCancel() { this.$emit('input', false) @@ -102,6 +116,7 @@ export default Vue.extend({ try { const update = { name: this.form.name, + summary: this.form.summary, } as ReadListUpdateDto await this.$komgaReadLists.patchReadList(this.readList.id, update) diff --git a/komga-webui/src/locales/en.json b/komga-webui/src/locales/en.json index cbb0af7e..de20c676 100644 --- a/komga-webui/src/locales/en.json +++ b/komga-webui/src/locales/en.json @@ -365,7 +365,8 @@ "button_cancel": "Cancel", "button_confirm": "Save changes", "dialog_title": "Edit read list", - "field_name": "Name" + "field_name": "Name", + "field_summary": "Summary" }, "edit_series": { "button_cancel": "Cancel", diff --git a/komga-webui/src/types/komga-readlists.ts b/komga-webui/src/types/komga-readlists.ts index 37a8c3dd..47a47a2d 100644 --- a/komga-webui/src/types/komga-readlists.ts +++ b/komga-webui/src/types/komga-readlists.ts @@ -1,6 +1,7 @@ interface ReadListDto { id: string, name: string, + summary: string, filtered: boolean, bookIds: string[], createdDate: string, @@ -9,11 +10,13 @@ interface ReadListDto { interface ReadListCreationDto { name: string, + summary?: string, bookIds: string[] } interface ReadListUpdateDto { name?: string, + summary?: string, bookIds?: string[] } diff --git a/komga-webui/src/views/BrowseReadList.vue b/komga-webui/src/views/BrowseReadList.vue index d3d93128..70f04f75 100644 --- a/komga-webui/src/views/BrowseReadList.vue +++ b/komga-webui/src/views/BrowseReadList.vue @@ -63,6 +63,14 @@ + + + {{ readList.summary }} + + + + + { return {