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