delete text from dashboard
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user