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:
commit
fd086febfa
3 changed files with 4 additions and 3 deletions
1
changelog.d/lists_edit.fix
Normal file
1
changelog.d/lists_edit.fix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
fixed list title not being saved when editing
|
||||||
|
|
@ -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 })
|
||||||
|
|
|
||||||
|
|
@ -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: [] }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue