Skip to content

Commit

Permalink
TASK: Show loading state in content tree after toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Jul 23, 2021
1 parent 7353580 commit 6d9ef07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/neos-ui-redux-store/src/UI/ContentTree/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ import {GlobalState} from '@neos-project/neos-ui-redux-store/src/System';

export const getToggled = (state: GlobalState) => $get(['ui', 'contentTree', 'toggled'], state);
export const getIsLoading = (state: GlobalState) => $get(['ui', 'contentTree', 'isLoading'], state);
export const getLoading = (state: GlobalState) => $get(['ui', 'contentTree', 'loading'], state);
export const getErrors = (state: GlobalState) => $get(['ui', 'contentTree', 'errors'], state);
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ export const ContentTreeNode = withNodeTypeRegistryAndI18nRegistry(connect(
isActive: selectors.CR.Nodes.documentNodeContextPathSelector(state) === node.contextPath,
isFocused: selectors.CR.Nodes.focusedNodePathsSelector(state).includes(node.contextPath),
toggledNodeContextPaths: selectors.UI.ContentTree.getToggled(state),
loadingNodeContextPaths: selectors.UI.ContentTree.getLoading(state),
errorNodeContextPaths: selectors.UI.ContentTree.getErrors(state),
isNodeDirty: isContentNodeDirtySelector(state, node.contextPath),
canBeInsertedAlongside,
canBeInsertedInto
Expand Down

0 comments on commit 6d9ef07

Please sign in to comment.