delete text from dashboard

This commit is contained in:
2023-03-12 09:11:49 +01:00
parent 44aed2883d
commit 02c748c286
4 changed files with 28 additions and 3 deletions

View File

@@ -208,4 +208,10 @@ export class DashboardComponent implements OnInit {
);
}
}
delete(dashboardId: string) {
this.dashboard!.arrangement[0] = this.dashboard!.arrangement[0].filter(a => a != dashboardId);
this.dashboard!.plots = this.dashboard!.plots.filter(p => p.id != dashboardId);
this.dashboard!.texts = this.dashboard!.texts.filter(t => t.id != dashboardId);
}
}