selected -> getSelected (compute won't work)

This commit is contained in:
luce 2025-08-06 16:31:38 +02:00
commit 94ea4c33d6
3 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ const PageList = {
}) })
} }
}, },
selected () { getSelected () {
return this.$refs.list.selected return this.$refs.list.selected
} }
}, },

View file

@ -111,7 +111,7 @@ const AdminCard = {
}, },
delete_selection () { delete_selection () {
const l = this.$refs.timelineList const l = this.$refs.timelineList
const s = l.selected() const s = l.getSelected()
s.forEach(p => this.$store.dispatch('deleteStatus', p)) s.forEach(p => this.$store.dispatch('deleteStatus', p))
l.reset() l.reset()
}, },

View file

@ -78,15 +78,15 @@ const UsersTab = {
this.$refs.userList.reset() this.$refs.userList.reset()
}, },
activate_selection () { activate_selection () {
const s = this.$refs.userList.selected() const s = this.$refs.userList.getSelected()
s.forEach(u => this.$store.dispatch('adminActivateUser', this.$store.getters.findUser(u.id))) s.forEach(u => this.$store.dispatch('adminActivateUser', this.$store.getters.findUser(u.id)))
}, },
deactivate_selection () { deactivate_selection () {
const s = this.$refs.userList.selected() const s = this.$refs.userList.getSelected()
s.forEach(u => this.$store.dispatch('adminDeactivateUser', this.$store.getters.findUser(u.id))) s.forEach(u => this.$store.dispatch('adminDeactivateUser', this.$store.getters.findUser(u.id)))
}, },
delete_selection () { delete_selection () {
const s = this.$refs.userList.selected() const s = this.$refs.userList.getSelected()
s.forEach(u => this.$store.dispatch('adminDeleteUser', this.$store.getters.findUser(u.id))) s.forEach(u => this.$store.dispatch('adminDeleteUser', this.$store.getters.findUser(u.id)))
this.reset() this.reset()
} }