@@ -2000,13 +2000,13 @@ public function GetRenderContent(WebPage $oPage, array $aExtraParams, string $sI
20002000 $ this ->AddMenuSeparator ($ aRegularActions );
20012001 foreach ($ aRelations as $ sRelationCode => $ aRelationInfo ) {
20022002 if (array_key_exists ('down ' , $ aRelationInfo )) {
2003- $ aRegularActions [$ sRelationCode .'_down ' ] = [
2003+ $ aRegularActions [' UI:Menu: ' . $ sRelationCode .'_down ' ] = [
20042004 'label ' => $ aRelationInfo ['down ' ],
20052005 'url ' => "{$ sRootUrl }pages/ $ sUIPage?operation=view_relations&relation= $ sRelationCode&direction=down&class= $ sClass&id= $ id {$ sContext }" ,
20062006 ] + $ aActionParams ;
20072007 }
20082008 if (array_key_exists ('up ' , $ aRelationInfo )) {
2009- $ aRegularActions [$ sRelationCode .'_up ' ] = [
2009+ $ aRegularActions [' UI:Menu: ' . $ sRelationCode .'_up ' ] = [
20102010 'label ' => $ aRelationInfo ['up ' ],
20112011 'url ' => "{$ sRootUrl }pages/ $ sUIPage?operation=view_relations&relation= $ sRelationCode&direction=up&class= $ sClass&id= $ id {$ sContext }" ,
20122012 ] + $ aActionParams ;
@@ -2251,6 +2251,16 @@ public function GetRenderContent(WebPage $oPage, array $aExtraParams, string $sI
22512251 $ sIconClass = 'fas fa-file-pdf fa-lg ' ;
22522252 $ sLabel = '' ;
22532253 break ;
2254+ case 'UI:Menu:impacts_up ' :
2255+ $ sIconClass = 'fas fa-sitemap fa-rotate-180 ' ;
2256+ $ sLabel = '' ;
2257+ $ aAction ['tooltip ' ] = Dict::S ('Relation:impacts/UpStream ' );
2258+ break ;
2259+ case 'UI:Menu:impacts_down ' :
2260+ $ sIconClass = 'fas fa-sitemap ' ;
2261+ $ sLabel = '' ;
2262+ $ aAction ['tooltip ' ] = Dict::S ('Relation:impacts/DownStream ' );
2263+ break ;
22542264
22552265 default :
22562266 if (isset ($ aAction ['icon_class ' ]) && (strlen ($ aAction ['icon_class ' ]) > 0 )) {
0 commit comments