convert new dashboard component to standalone component
This commit is contained in:
@@ -37,7 +37,6 @@ import {
|
|||||||
} from "./gallery-view/gallery-view.component";
|
} from "./gallery-view/gallery-view.component";
|
||||||
import { ImageToggleComponent } from "./image-toggle/image-toggle.component";
|
import { ImageToggleComponent } from "./image-toggle/image-toggle.component";
|
||||||
import { DashboardPageComponent } from "./dashboard-page/dashboard-page.component";
|
import { DashboardPageComponent } from "./dashboard-page/dashboard-page.component";
|
||||||
import { NewDashboardComponent } from "./dashboard-page/new-dashboard/new-dashboard.component";
|
|
||||||
import {
|
import {
|
||||||
MAT_DIALOG_DEFAULT_OPTIONS,
|
MAT_DIALOG_DEFAULT_OPTIONS,
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
@@ -75,7 +74,6 @@ import { MarkdownModule } from "ngx-markdown";
|
|||||||
GalleryFilterView,
|
GalleryFilterView,
|
||||||
ImageToggleComponent,
|
ImageToggleComponent,
|
||||||
DashboardPageComponent,
|
DashboardPageComponent,
|
||||||
NewDashboardComponent,
|
|
||||||
DashboardComponent,
|
DashboardComponent,
|
||||||
TextWidgetComponent,
|
TextWidgetComponent,
|
||||||
AddPlotDialogComponent,
|
AddPlotDialogComponent,
|
||||||
|
|||||||
@@ -1,11 +1,26 @@
|
|||||||
import { Component, ElementRef, Inject, OnInit, ViewChild } from '@angular/core';
|
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 { 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({
|
@Component({
|
||||||
selector: 'app-new-dashboard',
|
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 {
|
export class NewDashboardComponent implements OnInit {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user