add withReblogs & fix reporting modal
This commit is contained in:
parent
75e32d1386
commit
05f25c21e0
5 changed files with 27 additions and 37 deletions
|
|
@ -26,7 +26,7 @@
|
|||
}
|
||||
|
||||
&.-admin-view {
|
||||
.godmode {
|
||||
.filter {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ const UserProfileAdminView = {
|
|||
return {
|
||||
userId: null,
|
||||
godmode: false,
|
||||
showReblogs: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
@ -38,7 +39,7 @@ const UserProfileAdminView = {
|
|||
pageSize: 20,
|
||||
godmode: this.godmode,
|
||||
id: this.userId,
|
||||
withReblogs: false,
|
||||
withReblogs: this.showReblogs,
|
||||
}
|
||||
},
|
||||
user() {
|
||||
|
|
|
|||
|
|
@ -12,19 +12,28 @@
|
|||
/>
|
||||
<Checkbox
|
||||
v-model="godmode"
|
||||
class="godmode"
|
||||
class="filter"
|
||||
>
|
||||
{{ $t('admin_dash.users.godmode') }}
|
||||
{{ $t('admin_dash.users.filters.show_direct') }}
|
||||
</Checkbox>
|
||||
<Checkbox
|
||||
v-model="showReblogs"
|
||||
class="filter"
|
||||
>
|
||||
{{ $t('admin_dash.users.filters.show_reblogs') }}
|
||||
</Checkbox>
|
||||
</div>
|
||||
<List
|
||||
ref="list"
|
||||
:fetch-function="fetchStatuses"
|
||||
scrollable
|
||||
@select="onSelect"
|
||||
>
|
||||
<template #item="{item}">
|
||||
<Status :statusoid="item" />
|
||||
<Status
|
||||
:statusoid="item"
|
||||
:in-conversation="false"
|
||||
:focused="false"
|
||||
/>
|
||||
</template>
|
||||
</List>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -51,19 +51,16 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="user-reporting-panel-right">
|
||||
<List :external-items="statuses">
|
||||
<List
|
||||
:external-items="statuses"
|
||||
selectable
|
||||
>
|
||||
<template #item="{item}">
|
||||
<div class="status-fadein user-reporting-panel-sitem">
|
||||
<Status
|
||||
:in-conversation="false"
|
||||
:focused="false"
|
||||
:statusoid="item"
|
||||
/>
|
||||
<Checkbox
|
||||
:model-value="isChecked(item.id)"
|
||||
@update:model-value="checked => toggleStatus(checked, item.id)"
|
||||
/>
|
||||
</div>
|
||||
<Status
|
||||
:in-conversation="false"
|
||||
:focused="false"
|
||||
:statusoid="item"
|
||||
/>
|
||||
</template>
|
||||
</List>
|
||||
</div>
|
||||
|
|
@ -136,20 +133,6 @@
|
|||
overflow-y: auto;
|
||||
}
|
||||
|
||||
&-sitem {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
/* TODO cleanup this */
|
||||
> .Status {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
> .checkbox {
|
||||
margin: 0.75em;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (width >= 801px) {
|
||||
.panel-body {
|
||||
flex-direction: row;
|
||||
|
|
|
|||
|
|
@ -1295,7 +1295,6 @@
|
|||
"users": {
|
||||
"title": "Users",
|
||||
"local_id": "Local ID",
|
||||
"godmode": "Show direct messages",
|
||||
"labels": {
|
||||
"query": "Search",
|
||||
"name": "Name",
|
||||
|
|
@ -1326,10 +1325,8 @@
|
|||
"only_unconfirmed": "Exclude Confirmed"
|
||||
},
|
||||
"filters": {
|
||||
"show_direct": "Show Direct Posts",
|
||||
"show_reblogs": "Show Reblogs",
|
||||
"ascending": "Oldest First",
|
||||
"descending": "Newest First"
|
||||
"show_direct": "Show Direct Messages",
|
||||
"show_reblogs": "Show Reblogs"
|
||||
},
|
||||
"indicator": {
|
||||
"admin": "Admin",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue