From c7af33305278bb221bccdfc0aa9d9aace0fcd511 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Sun, 19 Mar 2023 09:18:16 +0100 Subject: [PATCH] remove title form add/edit plot dialog --- .../dashboard/add-plot-dialog/add-plot-dialog.component.html | 2 -- pdb-js/src/app/dashboard-page/dashboard/dashboard.component.ts | 2 +- .../dashboard/plot-widget/plot-widget.component.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pdb-js/src/app/dashboard-page/dashboard/add-plot-dialog/add-plot-dialog.component.html b/pdb-js/src/app/dashboard-page/dashboard/add-plot-dialog/add-plot-dialog.component.html index 8d90075..3120799 100644 --- a/pdb-js/src/app/dashboard-page/dashboard/add-plot-dialog/add-plot-dialog.component.html +++ b/pdb-js/src/app/dashboard-page/dashboard/add-plot-dialog/add-plot-dialog.component.html @@ -14,8 +14,6 @@ max-height: unset; } -

{{data.title}}

-
diff --git a/pdb-js/src/app/dashboard-page/dashboard/dashboard.component.ts b/pdb-js/src/app/dashboard-page/dashboard/dashboard.component.ts index ac1cc2b..35cc7c9 100644 --- a/pdb-js/src/app/dashboard-page/dashboard/dashboard.component.ts +++ b/pdb-js/src/app/dashboard-page/dashboard/dashboard.component.ts @@ -128,7 +128,7 @@ export class DashboardComponent implements OnInit { addPlot() { this.dialog.open(AddPlotDialogComponent,{ - data: {title: "Add Plot"}, + data: {}, width: 'calc(100% - 1em)', height: 'calc(100% - 1em)' }).afterClosed().subscribe((config: PlotConfig | "") => { diff --git a/pdb-js/src/app/dashboard-page/dashboard/plot-widget/plot-widget.component.ts b/pdb-js/src/app/dashboard-page/dashboard/plot-widget/plot-widget.component.ts index e8314c5..ee1d241 100644 --- a/pdb-js/src/app/dashboard-page/dashboard/plot-widget/plot-widget.component.ts +++ b/pdb-js/src/app/dashboard-page/dashboard/plot-widget/plot-widget.component.ts @@ -70,7 +70,7 @@ export class PlotWidgetComponent { edit() { this.dialog.open(AddPlotDialogComponent, { - data: {config: this.data.widget.config, title:"Edit Plot"}, + data: {config: this.data.widget.config}, width: 'calc(100% - 15px)', height: 'calc(100% - 15px)', }).afterClosed().subscribe((config?: PlotConfig) => {