selected -> getSelected (compute won't work)
This commit is contained in:
parent
eb3d75e6de
commit
94ea4c33d6
3 changed files with 5 additions and 5 deletions
|
|
@ -50,7 +50,7 @@ const PageList = {
|
|||
})
|
||||
}
|
||||
},
|
||||
selected () {
|
||||
getSelected () {
|
||||
return this.$refs.list.selected
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ const AdminCard = {
|
|||
},
|
||||
delete_selection () {
|
||||
const l = this.$refs.timelineList
|
||||
const s = l.selected()
|
||||
const s = l.getSelected()
|
||||
s.forEach(p => this.$store.dispatch('deleteStatus', p))
|
||||
l.reset()
|
||||
},
|
||||
|
|
|
|||
|
|
@ -78,15 +78,15 @@ const UsersTab = {
|
|||
this.$refs.userList.reset()
|
||||
},
|
||||
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)))
|
||||
},
|
||||
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)))
|
||||
},
|
||||
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)))
|
||||
this.reset()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue