Skip to content

Commit

Permalink
[BUGFIX] Add correct context to page tree context menu
Browse files Browse the repository at this point in the history
In order to allow user to disable context menu items for certain context,
e.g. page tree, page tree need to correctly pass the context to the JS.

As SvgTree doesnt support context menu, the code is moved to the PageTree.js
Also a bug in the changelog documentation is fixed.

Releases: master, 8.7
Resolves: #84017
Change-Id: I4c3b51aa50d1750b86391342ba45aaec00c70a10
Reviewed-on: https://review.typo3.org/56376
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
  • Loading branch information
tmotyl committed Mar 29, 2018
1 parent b173351 commit eaf259f
Showing 1 changed file with 8 additions and 5 deletions.
Expand Up @@ -59,10 +59,13 @@ Migration

Migrate TSConfig from:

:typoscript:`options.contextMenu.folderList.disableItems` to :typoscript:`options.contextMenu.sys_file.disableItems`
:typoscript:`options.contextMenu.folderTree.disableItems` to :typoscript:`options.contextMenu.sys_file.tree.disableItems`
:typoscript:`options.contextMenu.pageList.disableItems` to :typoscript:`options.contextMenu.pages.disableItems`
:typoscript:`options.contextMenu.pageTree.disableItems` to :typoscript:`options.contextMenu.pages.tree.disableItems`
:typoscript:`options.contextMenu.folderList.disableItems` to :typoscript:`options.contextMenu.table.sys_file.disableItems`

:typoscript:`options.contextMenu.folderTree.disableItems` to :typoscript:`options.contextMenu.table.sys_file.tree.disableItems`

:typoscript:`options.contextMenu.pageList.disableItems` to :typoscript:`options.contextMenu.table.pages.disableItems`

:typoscript:`options.contextMenu.pageTree.disableItems` to :typoscript:`options.contextMenu.table.pages.tree.disableItems`



Expand Down Expand Up @@ -123,4 +126,4 @@ Migration
Adapt your code to the new click menu API.


.. index:: Backend, JavaScript, PHP-API, TSConfig
.. index:: Backend, JavaScript, PHP-API, TSConfig

0 comments on commit eaf259f

Please sign in to comment.