PLT-2705 - Fixing jump to archive on mobile (#2861)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
05a203b409
Коммит
ffb4cb5e10
@@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||||
// See License.txt for license information.
|
// See License.txt for license information.
|
||||||
|
|
||||||
|
import $ from 'jquery';
|
||||||
import UserProfile from './user_profile.jsx';
|
import UserProfile from './user_profile.jsx';
|
||||||
|
|
||||||
import UserStore from 'stores/user_store.jsx';
|
import UserStore from 'stores/user_store.jsx';
|
||||||
@@ -23,6 +24,10 @@ export default class SearchResultsItem extends React.Component {
|
|||||||
this.handleFocusRHSClick = this.handleFocusRHSClick.bind(this);
|
this.handleFocusRHSClick = this.handleFocusRHSClick.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hideSidebar() {
|
||||||
|
$('.inner-wrap, .sidebar--right').removeClass('move--left');
|
||||||
|
}
|
||||||
|
|
||||||
handleFocusRHSClick(e) {
|
handleFocusRHSClick(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
GlobalActions.emitPostFocusRightHandSideFromSearch(this.props.post, this.props.isMentionSearch);
|
GlobalActions.emitPostFocusRightHandSideFromSearch(this.props.post, this.props.isMentionSearch);
|
||||||
@@ -127,6 +132,8 @@ export default class SearchResultsItem extends React.Component {
|
|||||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||||
postId: null
|
postId: null
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.hideSidebar();
|
||||||
}
|
}
|
||||||
browserHistory.push('/' + window.location.pathname.split('/')[1] + '/pl/' + post.id);
|
browserHistory.push('/' + window.location.pathname.split('/')[1] + '/pl/' + post.id);
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user