diff --git a/src/app/app.component.html b/src/app/app.component.html index 667fc31..79ceb74 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -421,13 +421,13 @@ - + \ No newline at end of file diff --git a/src/components/download-dialog/download-dialog.component.spec.ts b/src/components/download-dialog/download-dialog.component.spec.ts new file mode 100644 index 0000000..fd4e313 --- /dev/null +++ b/src/components/download-dialog/download-dialog.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DownloadDialogComponent } from './download-dialog.component'; + +describe('DownloadDialogComponent', () => { + let component: DownloadDialogComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ DownloadDialogComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(DownloadDialogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/components/download-dialog/download-dialog.component.ts b/src/components/download-dialog/download-dialog.component.ts new file mode 100644 index 0000000..6d6c929 --- /dev/null +++ b/src/components/download-dialog/download-dialog.component.ts @@ -0,0 +1,21 @@ +import { Component, OnInit, Inject } from '@angular/core'; +import {MatDialog, MAT_DIALOG_DATA} from '@angular/material/dialog'; + +@Component({ + selector: 'app-download-dialog', + templateUrl: './download-dialog.component.html', + styleUrls: ['./download-dialog.component.css'] +}) +export class DownloadDialogComponent implements OnInit { + + constructor(@Inject(MAT_DIALOG_DATA) public data: any) { + console.log('Dialog:', data); + } + + ngOnInit(): void { + } + + clear() { + + } +}