make sidebar right menu Global actions and toggle that on leaving team (#6900)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d307162d16
Коммит
39154d22ae
@@ -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,
|
||||
|
||||
Ссылка в новой задаче
Block a user