Commit bbbf4c78 authored by Mona Muzaffar's avatar Mona Muzaffar Committed by Anja Leichsenring
Browse files

[BUGFIX] Fix title for expand button in workspace module

Change-Id: I6a17811dd5dbc5ed285b6040fcbe97e94b416b8b
Releases: master
Resolves: #79321
Reviewed-on: https://review.typo3.org/51359

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Riccardo De Contardi's avatarRiccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent d3371f04
......@@ -172,6 +172,9 @@
<trans-unit id="tooltip.swap">
<source>Swap live and workspace versions of record</source>
</trans-unit>
<trans-unit id="tooltip.expand">
<source>Expand element and show relations</source>
</trans-unit>
<trans-unit id="tooltip.showHistory">
<source>Show history of workspace version</source>
</trans-unit>
......
......@@ -491,9 +491,8 @@ define([
var item = result.data[i],
$actions = $('<div />', {class: 'btn-group'}),
$integrityIcon = '';
$actions.append(
Backend.getAction(item.Workspaces_CollectionChildren > 0 && item.Workspaces_CollectionCurrent !== '', 'expand', 'apps-pagetree-collapse').attr('title', TYPO3.lang['tooltip.swap']).attr('data-target', '[data-collection="' + item.Workspaces_CollectionCurrent + '"]').attr('data-toggle', 'collapse'),
Backend.getAction(item.Workspaces_CollectionChildren > 0 && item.Workspaces_CollectionCurrent !== '', 'expand', 'apps-pagetree-collapse').attr('title', TYPO3.lang['tooltip.expand']).attr('data-target', '[data-collection="' + item.Workspaces_CollectionCurrent + '"]').attr('data-toggle', 'collapse'),
$('<button />', {class: 'btn btn-default', 'data-action': 'changes', 'data-toggle': 'tooltip', title: TYPO3.lang['tooltip.showChanges']}).append(Backend.getPreRenderedIcon('actions-document-info')),
Backend.getAction(item.allowedAction_swap && item.Workspaces_CollectionParent === '', 'swap', 'actions-version-swap-version').attr('title', TYPO3.lang['tooltip.swap']),
Backend.getAction(item.allowedAction_view, 'preview', 'actions-version-workspace-preview').attr('title', TYPO3.lang['tooltip.viewElementAction']),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment