mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user