Dashboards: Remove emptyDashboardPage feature flag (#81188)

* remove emptyDashboardPage feature toggle from DashNav

* remove emptyDashboardPage feature toggle from NewDashboardWithDS

* remove emptyDashboardPage feature toggle from DashboardGrid

* remove emptyDashboardPage feature toggle from DashboardModel

* remove emptyDashboardPage feature toggle from initDashboard

* remove unused AddPanelWidged component

* remove add-panel type from test

* remove emptyDashboardPage feature flag from registry.go
This commit is contained in:
Sergej-Vlasov
2024-01-25 14:04:29 +00:00
committed by GitHub
parent d66d7a9642
commit 9ba13dd309
20 changed files with 18 additions and 554 deletions

View File

@@ -302,12 +302,8 @@ export class DashboardModel implements TimeModel {
}
private getPanelSaveModels() {
// Todo: Remove panel.type === 'add-panel' when we remove the emptyDashboardPage toggle
return this.panels
.filter(
(panel) =>
this.isSnapshotTruthy() || !(panel.type === 'add-panel' || panel.repeatPanelId || panel.repeatedByRow)
)
.filter((panel) => this.isSnapshotTruthy() || !(panel.repeatPanelId || panel.repeatedByRow))
.map((panel) => {
// Clean libarary panels on save
if (panel.libraryPanel) {