This commit is contained in:
Henry Jameson 2026-06-10 15:49:29 +03:00
commit 068c3c0654
5 changed files with 49 additions and 53 deletions

View file

@ -116,7 +116,7 @@ const UsersTab = {
methods: {
fetchUsers(page) {
return useAdminSettingsStore()
.fetchAdminUsers({
.fetchUsers({
...this.fetchOptions,
page,
})

View file

@ -1,7 +1,6 @@
import { get } from 'lodash'
import { mapState } from 'pinia'
import Conversation from 'src/components/conversation/conversation.vue'
import FollowCard from 'src/components/follow_card/follow_card.vue'
import List from 'src/components/list/list.vue'
import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
@ -205,7 +204,6 @@ const UserProfile = {
List,
FollowCard,
TabSwitcher,
Conversation,
},
}

View file

@ -0,0 +1,46 @@
.user-profile {
flex: 2;
.card-wrapper {
border-top-left-radius: var(--roundness);
border-top-right-radius: var(--roundness);
}
.panel-footer {
border-bottom-left-radius: var(--roundness);
border-bottom-right-radius: var(--roundness);
}
// No sticky header on user profile
--currentPanelStack: 0;
.userlist-placeholder {
display: flex;
justify-content: center;
align-items: center;
padding: 2em;
}
.user-info {
margin: 1.2em;
}
}
.user-profile-placeholder {
.panel-body {
display: flex;
justify-content: center;
align-items: center;
padding: 7em;
}
.alert {
padding: 0.75em 5em;
border-width: 2px;
.error-message {
color: var(--text);
font-weight: bold;
}
}
}

View file

@ -126,52 +126,4 @@
<script src="./user_profile.js"></script>
<style lang="scss">
.user-profile {
flex: 2;
.card-wrapper {
border-top-left-radius: var(--roundness);
border-top-right-radius: var(--roundness);
}
.panel-footer {
border-bottom-left-radius: var(--roundness);
border-bottom-right-radius: var(--roundness);
}
// No sticky header on user profile
--currentPanelStack: 0;
.userlist-placeholder {
display: flex;
justify-content: center;
align-items: center;
padding: 2em;
}
.user-info {
margin: 1.2em;
}
}
.user-profile-placeholder {
.panel-body {
display: flex;
justify-content: center;
align-items: center;
padding: 7em;
}
.alert {
padding: 0.75em 5em;
border-width: 2px;
.error-message {
color: var(--text);
font-weight: bold;
}
}
}
</style>
<style src="./user_profile.scss" lang="scss"></style>

View file

@ -312,7 +312,7 @@ export const useAdminSettingsStore = defineStore('adminSettings', {
},
// Users stuff
async fetchAdminUsers(opts) {
async fetchUsers(opts) {
const adminData = await this.backendInteractor.adminListUsers({
opts,
})