Host applied services: route links to _self

This commit is contained in:
Thomas Gelf 2017-08-25 13:47:04 +02:00
parent 9fbc523ffd
commit 8f15fe3c0e
2 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,9 @@ class IcingaHostAppliedForServiceTable extends SimpleQueryBasedTable
*/ */
public static function load(IcingaHost $host, CustomVariableDictionary $dict) public static function load(IcingaHost $host, CustomVariableDictionary $dict)
{ {
return (new static())->setHost($host)->setDictionary($dict); $table = (new static())->setHost($host)->setDictionary($dict);
$table->attributes()->set('data-base-target', '_self');
return $table;
} }
public function setDictionary(CustomVariableDictionary $dict) public function setDictionary(CustomVariableDictionary $dict)

View File

@ -27,7 +27,9 @@ class IcingaHostAppliedServicesTable extends SimpleQueryBasedTable
*/ */
public static function load(IcingaHost $host) public static function load(IcingaHost $host)
{ {
return (new static())->setHost($host); $table = (new static())->setHost($host);
$table->attributes()->set('data-base-target', '_self');
return $table;
} }
public function setTitle($title) public function setTitle($title)