form validation for new dashboard dialog

This commit is contained in:
2023-03-14 20:09:36 +01:00
parent 882f04d893
commit e543e0b388
4 changed files with 35 additions and 18 deletions

View File

@@ -46,7 +46,8 @@ export class DashboardPageComponent implements OnInit {
createNewDashboard() {
const dialogRef = this.dialog.open(NewDashboardComponent, {
data: {name: "", description: ""}
data: {name: "", description: ""},
width: '30em'
});
dialogRef.afterClosed().subscribe((result: DashboardCreationData) => {