convert new dashboard component to standalone component
This commit is contained in:
@@ -37,7 +37,6 @@ import {
|
||||
} from "./gallery-view/gallery-view.component";
|
||||
import { ImageToggleComponent } from "./image-toggle/image-toggle.component";
|
||||
import { DashboardPageComponent } from "./dashboard-page/dashboard-page.component";
|
||||
import { NewDashboardComponent } from "./dashboard-page/new-dashboard/new-dashboard.component";
|
||||
import {
|
||||
MAT_DIALOG_DEFAULT_OPTIONS,
|
||||
MatDialogModule,
|
||||
@@ -75,7 +74,6 @@ import { MarkdownModule } from "ngx-markdown";
|
||||
GalleryFilterView,
|
||||
ImageToggleComponent,
|
||||
DashboardPageComponent,
|
||||
NewDashboardComponent,
|
||||
DashboardComponent,
|
||||
TextWidgetComponent,
|
||||
AddPlotDialogComponent,
|
||||
|
||||
@@ -1,11 +1,26 @@
|
||||
import { Component, ElementRef, Inject, OnInit, ViewChild } from '@angular/core';
|
||||
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
|
||||
import {MAT_DIALOG_DATA, MatDialogModule, MatDialogRef} from '@angular/material/dialog';
|
||||
import { DashboardCreationData } from 'src/app/dashboard.service';
|
||||
import { AbstractControl, FormControl, FormGroup, ValidationErrors, ValidatorFn, Validators } from '@angular/forms';
|
||||
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { OverlayModule } from '@angular/cdk/overlay';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
|
||||
@Component({
|
||||
selector: 'app-new-dashboard',
|
||||
templateUrl: './new-dashboard.component.html'
|
||||
templateUrl: './new-dashboard.component.html',
|
||||
standalone: true,
|
||||
imports: [
|
||||
BrowserModule,
|
||||
FormsModule,
|
||||
MatButtonModule,
|
||||
MatDialogModule,
|
||||
MatFormFieldModule,
|
||||
MatInputModule,
|
||||
ReactiveFormsModule
|
||||
]
|
||||
})
|
||||
export class NewDashboardComponent implements OnInit {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user