Added blocks, mutes links to SidebarXS and SidebarMorePopover
• Added: - blocks, mutes links to SidebarXS and SidebarMorePopover
This commit is contained in:
parent
5665094fd0
commit
10686f32ef
app/javascript/gabsocial/components
@ -10,6 +10,8 @@ const messages = defineMessages({
|
|||||||
help: { id: 'getting_started.help', defaultMessage: 'Help' },
|
help: { id: 'getting_started.help', defaultMessage: 'Help' },
|
||||||
settings: { id: 'settings', defaultMessage: 'Settings' },
|
settings: { id: 'settings', defaultMessage: 'Settings' },
|
||||||
logout: { 'id': 'confirmations.logout.confirm', 'defaultMessage': 'Log out' },
|
logout: { 'id': 'confirmations.logout.confirm', 'defaultMessage': 'Log out' },
|
||||||
|
blocks: { id: 'navigation_bar.blocks', defaultMessage: 'Blocked users' },
|
||||||
|
mutes: { id: 'navigation_bar.mutes', defaultMessage: 'Muted users' },
|
||||||
})
|
})
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => ({
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
@ -53,6 +55,14 @@ class SidebarMorePopover extends PureComponent {
|
|||||||
title: intl.formatMessage(messages.display),
|
title: intl.formatMessage(messages.display),
|
||||||
onClick: this.handleOnOpenDisplayModal,
|
onClick: this.handleOnOpenDisplayModal,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: intl.formatMessage(messages.blocks),
|
||||||
|
to: '/settings/blocks',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: intl.formatMessage(messages.mutes),
|
||||||
|
to: '/settings/mutes',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: intl.formatMessage(messages.settings),
|
title: intl.formatMessage(messages.settings),
|
||||||
href: '/settings/preferences',
|
href: '/settings/preferences',
|
||||||
|
@ -148,18 +148,18 @@ class SidebarXS extends ImmutablePureComponent {
|
|||||||
// onClick: this.handleSidebarClose,
|
// onClick: this.handleSidebarClose,
|
||||||
// title: intl.formatMessage(messages.follow_requests),
|
// title: intl.formatMessage(messages.follow_requests),
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// icon: 'block',
|
icon: 'block',
|
||||||
// to: '/blocks',
|
to: '/settings/blocks',
|
||||||
// onClick: this.handleSidebarClose,
|
onClick: this.handleSidebarClose,
|
||||||
// title: intl.formatMessage(messages.blocks),
|
title: intl.formatMessage(messages.blocks),
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// icon: 'audio-mute',
|
icon: 'audio-mute',
|
||||||
// to: '/mutes',
|
to: '/settings/mutes',
|
||||||
// onClick: this.handleSidebarClose,
|
onClick: this.handleSidebarClose,
|
||||||
// title: intl.formatMessage(messages.mutes),
|
title: intl.formatMessage(messages.mutes),
|
||||||
// },
|
},
|
||||||
// {
|
// {
|
||||||
// icon: 'report',
|
// icon: 'report',
|
||||||
// to: '/filters',
|
// to: '/filters',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user