N°5905 - Move tab description to a tooltip on the panel's title instead of a big blue alert

This commit is contained in:
Molkobain
2023-01-27 17:24:50 +01:00
parent 0374e303e4
commit af2421a2cb
6 changed files with 31 additions and 7 deletions

View File

@@ -42,6 +42,11 @@ class BlockDirectLinksViewTable extends AbstractBlockLinksViewTable
'panel_icon' => MetaModel::GetClassIcon($this->GetTargetClass(), false),
);
// Description
if ($this->oAttDef->HasDescription()) {
$aExtraParams['panel_title_tooltip'] = $this->oAttDef->GetDescription();
}
// Add creation in modal if the linkset is not readonly
if (!$this->oAttDef->GetReadOnly()) {
$aExtraParams['creation_in_modal_is_allowed'] = true;