mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°2844 - Object details: Improve transitions menu's tooltip depending on the presence of favorites or not
This commit is contained in:
@@ -2195,7 +2195,11 @@ class MenuBlock extends DisplayBlock
|
||||
|
||||
// - Others
|
||||
if (!empty($aTransitionActions)) {
|
||||
$sName = 'UI:Menu:Transitions';
|
||||
if (count($aFavoriteTransitionActions) > 0) {
|
||||
$sName = 'UI:Menu:OtherTransitions';
|
||||
} else {
|
||||
$sName = 'UI:Menu:Transitions';
|
||||
}
|
||||
$oActionButton = ButtonUIBlockFactory::MakeIconAction('fas fa-map-signs', Dict::S($sName), $sName, '', false, $sTransitionActionsMenuTogglerId)
|
||||
->AddCSSClasses(['ibo-action-button', 'ibo-transition-action-button'])
|
||||
->SetJsCode(<<<JS
|
||||
|
||||
@@ -488,6 +488,7 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
'UI:Menu:Actions' => 'Actions',
|
||||
'UI:Menu:OtherActions' => 'Other Actions',
|
||||
'UI:Menu:Transitions' => 'Transitions',
|
||||
'UI:Menu:OtherTransitions' => 'Other Transitions',
|
||||
'UI:Menu:New' => 'New...',
|
||||
'UI:Menu:Add' => 'Add...',
|
||||
'UI:Menu:Manage' => 'Manage...',
|
||||
|
||||
Reference in New Issue
Block a user