make sidebar right menu Global actions and toggle that on leaving team (#6900)

Этот коммит содержится в:
Saturnino Abril
2017-07-11 05:37:08 +08:00
коммит произвёл GitHub
родитель d307162d16
Коммит 39154d22ae
3 изменённых файлов: 19 добавлений и 16 удалений

Просмотреть файл

@@ -497,6 +497,23 @@ export function toggleSideBarAction(visible) {
}
}
export function toggleSideBarRightMenuAction() {
AppDispatcher.handleServerAction({
type: ActionTypes.RECEIVED_SEARCH,
results: null
});
AppDispatcher.handleServerAction({
type: ActionTypes.RECEIVED_POST_SELECTED,
postId: null
});
document.querySelector('.app__body .inner-wrap').classList.remove('move--right', 'move--left', 'move--left-small');
document.querySelector('.app__body .sidebar--left').classList.remove('move--right');
document.querySelector('.app__body .sidebar--right').classList.remove('move--left');
document.querySelector('.app__body .sidebar--menu').classList.remove('move--left');
}
export function emitBrowserFocus(focus) {
AppDispatcher.handleViewAction({
type: ActionTypes.BROWSER_CHANGE_FOCUS,