Apply 15 suggestion(s) to 7 file(s)
Co-authored-by: HJ <30-hj@users.noreply.git.pleroma.social>
This commit is contained in:
parent
d7f4a424ea
commit
138dc71b9f
7 changed files with 4 additions and 21 deletions
|
|
@ -1,4 +1,3 @@
|
|||
//import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
import SelectableList from 'src/components/selectable_list/selectable_list.vue'
|
||||
|
||||
const PageList = {
|
||||
|
|
@ -47,7 +46,6 @@ const PageList = {
|
|||
}).then((items) => {
|
||||
// ignore if another request was already dispatched
|
||||
if (iter == this.gliter) {
|
||||
console.log('items', items)
|
||||
this.items = [...this.items, ...items]
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
/>
|
||||
</div>
|
||||
<div
|
||||
v-if="boxOnly"
|
||||
v-else
|
||||
class="selectable-list-item-inner"
|
||||
:class="{ 'selectable-list-item-selected-inner': isSelected(item) }"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ const StatusContent = {
|
|||
'toggleShowingLongSubject'
|
||||
],
|
||||
data () {
|
||||
//console.log('status_content', this.status)
|
||||
return {
|
||||
postLength: this.status.text.length,
|
||||
parseReadyDone: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue