mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
PanelFactory: Fix neutral panel default to color to proper constant
This commit is contained in:
@@ -35,9 +35,11 @@ use ormStyle;
|
|||||||
*/
|
*/
|
||||||
class PanelUIBlockFactory extends AbstractUIBlockFactory
|
class PanelUIBlockFactory extends AbstractUIBlockFactory
|
||||||
{
|
{
|
||||||
|
/** @inheritDoc */
|
||||||
public const TWIG_TAG_NAME = 'UIPanel';
|
public const TWIG_TAG_NAME = 'UIPanel';
|
||||||
|
/** @inheritDoc */
|
||||||
public const UI_BLOCK_CLASS_NAME = Panel::class;
|
public const UI_BLOCK_CLASS_NAME = Panel::class;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make a basis Panel component
|
* Make a basis Panel component
|
||||||
*
|
*
|
||||||
@@ -48,8 +50,7 @@ class PanelUIBlockFactory extends AbstractUIBlockFactory
|
|||||||
public static function MakeNeutral(string $sTitle)
|
public static function MakeNeutral(string $sTitle)
|
||||||
{
|
{
|
||||||
$oPanel = new Panel($sTitle);
|
$oPanel = new Panel($sTitle);
|
||||||
// TODO 3.0.0: Set this back to neutral when object details are done
|
$oPanel->SetColor(Panel::ENUM_COLOR_NEUTRAL);
|
||||||
$oPanel->SetColor(Panel::ENUM_COLOR_BLUE);
|
|
||||||
|
|
||||||
return $oPanel;
|
return $oPanel;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user