Skip to content

Commit d27c0a8

Browse files
authored
Allow comma separated Panel ID lists (#60)
Change default dashboard id textbox from number to text to allow comma separated lists. The code already works to display multiple panels, but the config page doesn't allow non-numeric input.
1 parent 04b90f3 commit d27c0a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

application/forms/Config/GeneralConfigForm.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ public function createElements(array $formData)
131131
]
132132
);
133133
$this->addElement(
134-
'number',
134+
'text',
135135
'grafana_defaultdashboardpanelid',
136136
[
137137
'value' => '1',
138-
'label' => $this->translate('Default panel ID'),
139-
'description' => $this->translate('ID of the panel used in the default dashboard.'),
138+
'label' => $this->translate('Default panel ID(s)'),
139+
'description' => $this->translate('Comma separated IDs of the panels used in the default dashboard.'),
140140
'required' => true,
141141
]
142142
);

0 commit comments

Comments
 (0)