mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
Allow creating same dashlets from different modules
This commit is contained in:
parent
ec4d246a3c
commit
a2e9d3c946
@ -63,7 +63,7 @@ class SetupNewDashboardForm extends BaseDashboardForm
|
|||||||
if (! $strict && $title && $url) {
|
if (! $strict && $title && $url) {
|
||||||
$dashlet
|
$dashlet
|
||||||
->setUrl($url)
|
->setUrl($url)
|
||||||
->setName($title)
|
->setName($title . '(' . $module . ')')
|
||||||
->setTitle($title);
|
->setTitle($title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -212,6 +212,8 @@ class Pane extends BaseDashboard implements Sortable
|
|||||||
'module_dashlet_id' => $systemUuid
|
'module_dashlet_id' => $systemUuid
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->addEntry($dashlet);
|
||||||
} elseif (! $this->hasEntry($dashlet->getName()) || ! $moveDashlet) {
|
} elseif (! $this->hasEntry($dashlet->getName()) || ! $moveDashlet) {
|
||||||
$filterCondition = [
|
$filterCondition = [
|
||||||
'id = ?' => $dashlet->getUuid(),
|
'id = ?' => $dashlet->getUuid(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user