mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-28 01:18:26 +00:00
start of dialog component
This commit is contained in:
parent
b247ef2632
commit
632b6f8fbd
@ -30,6 +30,7 @@ import { environment } from '../environments/environment';
|
|||||||
import { ChartItemComponent } from './charts/chart-item/chart-item.component';
|
import { ChartItemComponent } from './charts/chart-item/chart-item.component';
|
||||||
import { ChartComponent } from './charts/chart/chart.component';
|
import { ChartComponent } from './charts/chart/chart.component';
|
||||||
import { FolderListComponent } from './lists/folder-list/folder-list.component';
|
import { FolderListComponent } from './lists/folder-list/folder-list.component';
|
||||||
|
import { DialogComponent } from './dialog/dialog.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -42,6 +43,7 @@ import { FolderListComponent } from './lists/folder-list/folder-list.component';
|
|||||||
ChartComponent,
|
ChartComponent,
|
||||||
ChartItemComponent,
|
ChartItemComponent,
|
||||||
FolderListComponent,
|
FolderListComponent,
|
||||||
|
DialogComponent,
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
4
src/app/dialog/dialog.component.html
Normal file
4
src/app/dialog/dialog.component.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<h1 mat-dialog-title>Error</h1>
|
||||||
|
<div mat-dialog-content>
|
||||||
|
{{data.message}}
|
||||||
|
</div>
|
0
src/app/dialog/dialog.component.scss
Normal file
0
src/app/dialog/dialog.component.scss
Normal file
25
src/app/dialog/dialog.component.spec.ts
Normal file
25
src/app/dialog/dialog.component.spec.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { DialogComponent } from './dialog.component';
|
||||||
|
|
||||||
|
describe('DialogComponent', () => {
|
||||||
|
let component: DialogComponent;
|
||||||
|
let fixture: ComponentFixture<DialogComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ DialogComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(DialogComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
21
src/app/dialog/dialog.component.ts
Normal file
21
src/app/dialog/dialog.component.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { Component, OnInit, Inject } from '@angular/core';
|
||||||
|
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
import { MessageService } from '../services/message.service';
|
||||||
|
|
||||||
|
export interface DialogData {
|
||||||
|
message: 'example message';
|
||||||
|
}
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-dialog',
|
||||||
|
templateUrl: './dialog.component.html',
|
||||||
|
styleUrls: ['./dialog.component.scss']
|
||||||
|
})
|
||||||
|
export class DialogComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor(public messageService: MessageService) { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user