remove title form add/edit plot dialog

This commit is contained in:
2023-03-19 09:18:16 +01:00
parent a3aa62aee2
commit c7af333052
3 changed files with 2 additions and 4 deletions

View File

@@ -14,8 +14,6 @@
max-height: unset; max-height: unset;
} }
</style> </style>
<h1 mat-dialog-title>{{data.title}}</h1>
<pdb-visualization-page mat-dialog-content #plot [defaultConfig]="data.config" [galleryEnabled]="false"></pdb-visualization-page> <pdb-visualization-page mat-dialog-content #plot [defaultConfig]="data.config" [galleryEnabled]="false"></pdb-visualization-page>
<div mat-dialog-actions align="end"> <div mat-dialog-actions align="end">

View File

@@ -128,7 +128,7 @@ export class DashboardComponent implements OnInit {
addPlot() { addPlot() {
this.dialog.open(AddPlotDialogComponent,{ this.dialog.open(AddPlotDialogComponent,{
data: {title: "Add Plot"}, data: {},
width: 'calc(100% - 1em)', width: 'calc(100% - 1em)',
height: 'calc(100% - 1em)' height: 'calc(100% - 1em)'
}).afterClosed().subscribe((config: PlotConfig | "") => { }).afterClosed().subscribe((config: PlotConfig | "") => {

View File

@@ -70,7 +70,7 @@ export class PlotWidgetComponent {
edit() { edit() {
this.dialog.open(AddPlotDialogComponent, { this.dialog.open(AddPlotDialogComponent, {
data: {config: this.data.widget.config, title:"Edit Plot"}, data: {config: this.data.widget.config},
width: 'calc(100% - 15px)', width: 'calc(100% - 15px)',
height: 'calc(100% - 15px)', height: 'calc(100% - 15px)',
}).afterClosed().subscribe((config?: PlotConfig) => { }).afterClosed().subscribe((config?: PlotConfig) => {