Merge branch 'fix-lists-edit' into 'develop'

fix list title edit not working

See merge request pleroma/pleroma-fe!2189
This commit is contained in:
HJ 2025-12-22 12:21:50 +00:00
commit fd086febfa
3 changed files with 4 additions and 3 deletions

View file

@ -0,0 +1 @@
fixed list title not being saved when editing

View file

@ -116,9 +116,7 @@ const ListsNew = {
}, },
updateListTitle () { updateListTitle () {
useListsStore().setList({ listId: this.id, title: this.titleDraft }) useListsStore().setList({ listId: this.id, title: this.titleDraft })
.then(() => { this.title = this.findListTitle(this.id)
this.title = this.findListTitle(this.id)
})
}, },
createList () { createList () {
useListsStore().createList({ title: this.titleDraft }) useListsStore().createList({ title: this.titleDraft })

View file

@ -43,6 +43,8 @@ export const useListsStore = defineStore('lists', {
}) })
}, },
setList ({ listId, title }) { setList ({ listId, title }) {
window.vuex.state.api.backendInteractor.updateList({ listId, title })
if (!this.allListsObject[listId]) { if (!this.allListsObject[listId]) {
this.allListsObject[listId] = { accountIds: [] } this.allListsObject[listId] = { accountIds: [] }
} }