This commit is contained in:
Henry Jameson 2026-08-26 13:59:18 +03:00
commit fdc0f39187
4 changed files with 4 additions and 19 deletions

View file

@ -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,

View file

@ -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

View file

@ -32,10 +32,6 @@ const global = {
$store: {
state: {
api: {},
users: {},
statuses: {
allStatusesObject: {},
},
},
},
$route: {

View file

@ -9,15 +9,6 @@ import {
describe('The UserHighlight store', () => {
beforeEach(() => {
setActivePinia(createPinia())
window.vuex = {
state: {
users: {
currentUser: {
fqn: 'foo@bar.tld',
},
},
},
}
})
describe('mutations', () => {