N°3566 Hub connector migrate to UiBlock : deployed extensions page

Add Hub icon to the button 🤩
This commit is contained in:
Pierre Goiffon
2021-03-10 17:02:12 +01:00
parent fe70db9af6
commit 979e73e376

View File

@@ -82,7 +82,8 @@ try {
$oPage->AddSubBlock($oHubButtonContainer);
$sUrl = utils::GetAbsoluteUrlModulePage('itop-hub-connector', 'launch.php', array('target' => 'browse_extensions'));
$oHubButton = ButtonUIBlockFactory::MakeForPrimaryAction(Dict::S('iTopHub:GetMoreExtensions'), 'install-extensions-button')
->SetOnClickJsCode("window.location.href='$sUrl'");
->SetOnClickJsCode("window.location.href='$sUrl'")
->SetIconClass('fa-fw fc fc-itophub-icon fc-1-5x');
$oHubButtonContainer->AddSubBlock($oHubButton);