Skip to content

Commit

Permalink
Rename to include "Menu" terminology
Browse files Browse the repository at this point in the history
Remove "entity" in favour of "menu"

Attempt to fix failing e2e test
  • Loading branch information
getdave committed Feb 14, 2022
1 parent 9190941 commit 6a93603
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/block-library/src/navigation/use-navigation-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@ export default function useNavigationMenu( ref ) {
),
navigationMenu,
navigationMenus,
canUserUpdateNavigationEntity: ref
canUserUpdateNavigationMenu: ref
? canUser( 'update', 'navigation', ref )
: undefined,
hasResolvedCanUserUpdateNavigationEntity: hasFinishedResolution(
hasResolvedCanUserUpdateNavigationMenu: hasFinishedResolution(
'canUser',
[ 'update', 'navigation', ref ]
),
canUserDeleteNavigationEntity: ref
canUserDeleteNavigationMenu: ref
? canUser( 'delete', 'navigation', ref )
: undefined,
hasResolvedCanUserDeleteNavigationEntity: hasFinishedResolution(
hasResolvedCanUserDeleteNavigationMenu: hasFinishedResolution(
'canUser',
[ 'delete', 'navigation', ref ]
),
canUserCreateNavigation: canUser( 'create', 'navigation' ),
hasResolvedCanUserCreateNavigation: hasFinishedResolution(
canUserCreateNavigationMenu: canUser( 'create', 'navigation' ),
hasResolvedCanUserCreateNavigationMenu: hasFinishedResolution(
'canUser',
[ 'create', 'navigation' ]
),
Expand Down

0 comments on commit 6a93603

Please sign in to comment.