mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
Tab: Use the title as caption if there is no label set yet
This commit is contained in:
parent
4a5e6bfc7c
commit
ba0154ab79
@ -140,6 +140,10 @@ class Tab extends AbstractWidget
|
|||||||
*/
|
*/
|
||||||
public function getLabel()
|
public function getLabel()
|
||||||
{
|
{
|
||||||
|
if (! $this->label) {
|
||||||
|
return $this->title;
|
||||||
|
}
|
||||||
|
|
||||||
return $this->label;
|
return $this->label;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,7 +242,7 @@ class Tab extends AbstractWidget
|
|||||||
$classes[] = 'active';
|
$classes[] = 'active';
|
||||||
}
|
}
|
||||||
|
|
||||||
$caption = $view->escape($this->label);
|
$caption = $view->escape($this->getLabel());
|
||||||
$tagParams = $this->tagParams;
|
$tagParams = $this->tagParams;
|
||||||
|
|
||||||
if ($this->title) {
|
if ($this->title) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user