sforkowany z mirror/soapbox
updated: reported items, improved usability
rodzic
fa86d1d5dd
commit
18cdd9c77b
|
@ -55,7 +55,7 @@ const ReportStatus: React.FC<IReportStatus> = ({ status }) => {
|
|||
<div className='flex-none'>
|
||||
<DropdownMenu
|
||||
items={menu}
|
||||
src={require('@tabler/icons/dots-vertical.svg')}
|
||||
src={require('@tabler/icons/gavel.svg')}
|
||||
/>
|
||||
</div>
|
||||
</HStack>
|
||||
|
|
|
@ -45,7 +45,7 @@ const Report: React.FC<IReport> = ({ id }) => {
|
|||
return [{
|
||||
text: intl.formatMessage(messages.deactivateUser, { name: targetAccount.username }),
|
||||
action: handleDeactivateUser,
|
||||
icon: require('@tabler/icons/hourglass-empty.svg'),
|
||||
icon: require('@tabler/icons/hourglass-low.svg'),
|
||||
}, {
|
||||
text: intl.formatMessage(messages.deleteUser, { name: targetAccount.username }),
|
||||
action: handleDeleteUser,
|
||||
|
@ -95,7 +95,7 @@ const Report: React.FC<IReport> = ({ id }) => {
|
|||
id='admin.reports.report_title'
|
||||
defaultMessage='Report on {acct}'
|
||||
values={{ acct: (
|
||||
<HoverRefWrapper accountId={account.id} inline>
|
||||
<HoverRefWrapper accountId={targetAccount.id} inline>
|
||||
<Link to={`/@${acct}`} title={acct}>@{acct}</Link>
|
||||
</HoverRefWrapper>
|
||||
) }}
|
||||
|
@ -104,7 +104,11 @@ const Report: React.FC<IReport> = ({ id }) => {
|
|||
|
||||
{statusCount > 0 && (
|
||||
<Accordion
|
||||
headline={`Reported posts (${statusCount})`}
|
||||
headline={<FormattedMessage
|
||||
id='admin.reports.reported_posts'
|
||||
defaultMessage='Reported {count} {count, plural, one {post} other {posts}}'
|
||||
values={{ count: statusCount }}
|
||||
/>}
|
||||
expanded={accordionExpanded}
|
||||
onToggle={handleAccordionToggle}
|
||||
>
|
||||
|
@ -144,12 +148,9 @@ const Report: React.FC<IReport> = ({ id }) => {
|
|||
</Stack>
|
||||
</Stack>
|
||||
|
||||
<HStack space={2} alignItems='start' className='flex-none'>
|
||||
<Button onClick={handleCloseReport}>
|
||||
<FormattedMessage id='admin.reports.actions.close' defaultMessage='Close' />
|
||||
</Button>
|
||||
|
||||
<DropdownMenu items={menu} src={require('@tabler/icons/dots-vertical.svg')} />
|
||||
<HStack space={2} alignItems='top' className='flex-none'>
|
||||
<DropdownMenu items={menu} src={require('@tabler/icons/gavel.svg')} />
|
||||
<Button theme='danger' icon={require('@tabler/icons/x.svg')} onClick={handleCloseReport} />
|
||||
</HStack>
|
||||
</HStack>
|
||||
);
|
||||
|
|
|
@ -105,11 +105,11 @@
|
|||
"admin.latest_accounts_panel.more": "Click to see {count} {count, plural, one {account} other {accounts}}",
|
||||
"admin.latest_accounts_panel.title": "Latest Accounts",
|
||||
"admin.moderation_log.empty_message": "You have not performed any moderation actions yet. When you do, a history will be shown here.",
|
||||
"admin.reports.actions.close": "Close",
|
||||
"admin.reports.actions.view_status": "View post",
|
||||
"admin.reports.empty_message": "There are no open reports. If a user gets reported, they will show up here.",
|
||||
"admin.reports.report_closed_message": "Report on @{name} was closed",
|
||||
"admin.reports.report_title": "Report on {acct}",
|
||||
"admin.reports.reported_posts": "Reported {count} {count, plural, one {post} other {posts}}",
|
||||
"admin.software.backend": "Backend",
|
||||
"admin.software.frontend": "Frontend",
|
||||
"admin.statuses.actions.delete_status": "Delete post",
|
||||
|
|
Ładowanie…
Reference in New Issue