Added shortcuts back to sidebar (visible to PRO only for now)
• Added: - shortcuts back to sidebar (visible to PRO only for now)
This commit is contained in:
parent
625cfab1b4
commit
6234cde19c
@ -9,7 +9,7 @@ class Api::V1::Timelines::ListController < Api::BaseController
|
|||||||
after_action :insert_pagination_headers, unless: -> { @statuses.empty? }
|
after_action :insert_pagination_headers, unless: -> { @statuses.empty? }
|
||||||
|
|
||||||
def show
|
def show
|
||||||
render json: [],
|
render json: set_statuses,
|
||||||
each_serializer: REST::StatusSerializer,
|
each_serializer: REST::StatusSerializer,
|
||||||
relationships: StatusRelationshipsPresenter.new(@statuses, current_user.account_id)
|
relationships: StatusRelationshipsPresenter.new(@statuses, current_user.account_id)
|
||||||
end
|
end
|
||||||
|
@ -21,7 +21,9 @@ class DefaultSidebar extends ImmutablePureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
// this.props.onFetchShortcuts()
|
if (this.props.isPro) {
|
||||||
|
this.props.onFetchShortcuts()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleOpenSidebarMorePopover = () => {
|
handleOpenSidebarMorePopover = () => {
|
||||||
@ -154,6 +156,7 @@ const mapStateToProps = (state) => ({
|
|||||||
notificationCount: state.getIn(['notifications', 'unread']),
|
notificationCount: state.getIn(['notifications', 'unread']),
|
||||||
unreadChatsCount: state.getIn(['chats', 'chatsUnreadCount']),
|
unreadChatsCount: state.getIn(['chats', 'chatsUnreadCount']),
|
||||||
homeItemsQueueCount: state.getIn(['timelines', 'home', 'totalQueuedItemsCount']),
|
homeItemsQueueCount: state.getIn(['timelines', 'home', 'totalQueuedItemsCount']),
|
||||||
|
isPro: state.getIn(['accounts', me, 'is_pro']),
|
||||||
})
|
})
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => ({
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user