cleanup
This commit is contained in:
parent
946682b3b4
commit
fdc0f39187
4 changed files with 4 additions and 19 deletions
|
|
@ -48,7 +48,7 @@ const List = {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
items: [],
|
items: [],
|
||||||
selected: new Set(this.preSelect),
|
selected: new Set(this.preSelect), // clone
|
||||||
loading: false,
|
loading: false,
|
||||||
bottomedOut: true,
|
bottomedOut: true,
|
||||||
error: null,
|
error: null,
|
||||||
|
|
|
||||||
|
|
@ -430,11 +430,9 @@ export const useAdminSettingsStore = defineStore('adminSettings', {
|
||||||
})
|
})
|
||||||
|
|
||||||
resultUserIds.data.forEach((userId) => {
|
resultUserIds.data.forEach((userId) => {
|
||||||
window.vuex.dispatch(
|
useStatusesStore().wipeUserStatuses(status.user.id)
|
||||||
'markStatusesAsDeleted',
|
// Users are technically never deleted, just deactivated
|
||||||
(status) => userId === status.user.id,
|
// so there's no real need to delete them from store.
|
||||||
)
|
|
||||||
// TODO when migrated to pinia, also remove user
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return resultUserIds
|
return resultUserIds
|
||||||
|
|
|
||||||
|
|
@ -32,10 +32,6 @@ const global = {
|
||||||
$store: {
|
$store: {
|
||||||
state: {
|
state: {
|
||||||
api: {},
|
api: {},
|
||||||
users: {},
|
|
||||||
statuses: {
|
|
||||||
allStatusesObject: {},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
$route: {
|
$route: {
|
||||||
|
|
|
||||||
|
|
@ -9,15 +9,6 @@ import {
|
||||||
describe('The UserHighlight store', () => {
|
describe('The UserHighlight store', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
setActivePinia(createPinia())
|
setActivePinia(createPinia())
|
||||||
window.vuex = {
|
|
||||||
state: {
|
|
||||||
users: {
|
|
||||||
currentUser: {
|
|
||||||
fqn: 'foo@bar.tld',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('mutations', () => {
|
describe('mutations', () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue