Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix withRow true case
  • Loading branch information
Muhammad Shahzeb committed Oct 13, 2023
commit 4c5847b52d53db9cae1e6fdca0b78e8a319f3f12
2 changes: 1 addition & 1 deletion grafana-cloud-integration-utils/util.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ local integration_version_panel(version, statusPanelDataSource, height, width, x
panelsHeight=config.statusPanelsGridPos[0],
panelsWidth=config.statusPanelsGridPos[1],
rowPositionY=config.statusPanelsGridPos[3],
withRow=if config.statusPanelsWithRow then config.statusPanelsWithRow else true,
withRow=(if std.objectHas(config, 'statusPanelsWithRow') then config.statusPanelsWithRow else true),
)).panels.statusPanels,
[
panel {
Expand Down
1 change: 1 addition & 0 deletions status-panels-lib/status-panels/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ local variables = import './variables.libsonnet';
dateTimeUnit,
withRow,
),

},

}
2 changes: 1 addition & 1 deletion status-panels-lib/status-panels/panels.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function(
[
self.row,
],
self.statusPanels,
self.statusPanelsWithOutRow,
]),

statusPanels: if withRow then
Expand Down