Apply 15 suggestion(s) to 7 file(s)

Co-authored-by: HJ <30-hj@users.noreply.git.pleroma.social>
This commit is contained in:
Lucy 2025-07-27 18:44:18 +00:00 committed by luce
commit 138dc71b9f
7 changed files with 4 additions and 21 deletions

View file

@ -16,8 +16,6 @@ const AdminCard = {
just_deleted: false,
}
},
mounted () {
},
computed: {
isLoaded () {
return typeof(this.user) !== 'undefined'
@ -73,9 +71,8 @@ const AdminCard = {
methods: {
toggle_admin (v) {
const u = this.$store.getters.findUser(this.userDetails.id)
console.log('user', u)
if (v === true) {
this.$store.dispatch('adminAddUserToAdminGroup', u).then(res => console.log("res: ", res))
this.$store.dispatch('adminAddUserToAdminGroup', u)
} else {
this.$store.dispatch('adminRemoveUserFromAdminGroup', u)
}

View file

@ -1,4 +1,3 @@
//import get from 'lodash/get'
import Checkbox from 'src/components/checkbox/checkbox.vue'
import Select from 'src/components/select/select.vue'
import BasicUserCard from 'src/components/basic_user_card/basic_user_card.vue'
@ -48,8 +47,6 @@ const UsersTab = {
AdminCard,
TabSwitcher,
},
computed: {
},
methods: {
update_origin (v) {
switch (v) {
@ -147,7 +144,6 @@ const UsersTab = {
},
delete_selection () {
const s = this.$refs.userList.selected()
console.log(s)
s.forEach(u => this.$store.dispatch('adminDeleteUser', this.$store.getters.findUser(u.id)))
this.reset()
}