Skip to content

Commit

Permalink
[FEATURE] PageLayoutModule: Implement Trash/UnusedElements
Browse files Browse the repository at this point in the history
Add loading functionallity. Fix page id and icon.

Related: #400
Release: 8.0.0
  • Loading branch information
opi99 committed Jun 28, 2022
1 parent c391b0d commit 4bc91a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Classes/Controller/Backend/Ajax/Trash.php
Expand Up @@ -47,8 +47,6 @@ public function load(ServerRequestInterface $request): ResponseInterface
/** @var array */
$parameters = $request->getParsedBody();

$parameters['pid'] = 1;

$unusedElements = $this->trash2fluid((int)$parameters['pid']);

$view = $this->getFluidTemplateObject('EXT:templavoilaplus/Resources/Private/Templates/Backend/Ajax/Trash.html', $this->getSettings());
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Backend/Ajax/Trash.html
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="{f:if(condition: '{settings.configuration.is11orNewer}', then:'', else: 'media-right')} flex-shrink-0">
<button type="button" class="btn btn-default btn-sm tvjs-trash-delete">
<core:icon identifier="actions-edit-copy-release" />
<core:icon identifier="actions-edit-delete" />
</button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/PageLayout.js
Expand Up @@ -126,7 +126,7 @@ define([
$.ajax({
type: 'POST',
data: {
id: $('#moduleWrapper').data('tvpPageId')
pid: $('#moduleWrapper').data('tvpPageId')
},
url: TYPO3.settings.ajaxUrls['templavoilaplus_trash_load'],
success: function(data) {
Expand Down

0 comments on commit 4bc91a8

Please sign in to comment.