mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Force a layout after a toggle to viz-mode
This commit is contained in:
@@ -35,17 +35,6 @@ export function toggleHelp() {
|
||||
}
|
||||
|
||||
|
||||
export function toggleGridMode(enabled) {
|
||||
return (dispatch, getState) => {
|
||||
dispatch({
|
||||
type: ActionTypes.SET_GRID_MODE,
|
||||
enabled
|
||||
});
|
||||
updateRoute(getState);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
export function sortOrderChanged(sortBy, sortedDesc) {
|
||||
return (dispatch, getState) => {
|
||||
dispatch({
|
||||
@@ -243,6 +232,19 @@ export function clickForceRelayout() {
|
||||
};
|
||||
}
|
||||
|
||||
export function toggleGridMode(enabled) {
|
||||
return (dispatch, getState) => {
|
||||
dispatch({
|
||||
type: ActionTypes.SET_GRID_MODE,
|
||||
enabled
|
||||
});
|
||||
updateRoute(getState);
|
||||
if (!enabled) {
|
||||
dispatch(clickForceRelayout());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export function clickNode(nodeId, label, origin) {
|
||||
return (dispatch, getState) => {
|
||||
dispatch({
|
||||
|
||||
Reference in New Issue
Block a user